Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop symfony < 3.4 and < 4.3 for 4.x #520

Merged
merged 3 commits into from
Feb 21, 2020

Conversation

franmomu
Copy link
Contributor

@franmomu franmomu commented Feb 8, 2020

Q A
Bug fix? no
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #496, #482, #495, #481, #511
License Apache2

Description

EDIT: I've removed some changes I had made (cleaning up) so there are fewer changes and those changes can be applied later with a CS Fixer.

@goetas
Copy link
Collaborator

goetas commented Feb 9, 2020

@franmomu Thanks for your PR! Looks good, but will take some time to be reviewed.

@schmittjoh @gnat42 I'm fine with dropping support for old versions and doing some cleanup... what about you?

@franmomu
Copy link
Contributor Author

franmomu commented Feb 9, 2020

@franmomu Thanks for your PR! Looks good, but will take some time to be reviewed.

Sure! Let me write some comments in some of the changes to make it easier.


/**
* @Route("/api", service="jms_translation.controller.api_controller")
* @Route("/api")
Copy link
Contributor Author

@franmomu franmomu Feb 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a deprecation for Route and Method from SensioFrameworkExtraBundle, because of removing the service option, I had to defined these aliases too.

@@ -63,13 +63,6 @@ public function buildForm(FormBuilder $builder, array $options)
'label' => false,
'attr' => array('placeholder' => /** @Desc("Field with a placeholder but no label") */ 'form.placeholder.text.but.no.label')
))
->add('field_with_choice_as_values', 'choice', array(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@franmomu franmomu force-pushed the drop_symfony_versions branch 2 times, most recently from 455cb12 to c4219ff Compare February 9, 2020 21:58
@gnat42
Copy link
Collaborator

gnat42 commented Feb 10, 2020

It makes sense at this point to start dropping some of those. I haven't reviewed the PR closely though I did skim through the changes and it looked fine to me. However I'd suggest that if this is done you perhaps make it a major release number bump due to the break.

@goetas
Copy link
Collaborator

goetas commented Feb 10, 2020

@gnat42 I do not see bc breaks, can you point me to it? (dropping supported version should not be considered as a BC break, see this blog post from the doctrine team https://www.doctrine-project.org/2017/07/25/php-7.1-requirement-and-composer.html)

@gnat42
Copy link
Collaborator

gnat42 commented Feb 11, 2020

@goetas Interesting. I can see their point. The only reason I disagree (but ultimately don't care which way you go with this), is semantic version not only helps the computer know what version and allows you to stick to a particular one, but it also signals people that something has changed. True if you bump the minimum up it doesn't break and composer will ignore new versions but then people will be hmm why do I have x.y.z and and not x.y.z2... and have to dig a bit. A major version bump tells you something has changed without digging is all. Feel free to merge and release whatever version you like.

@franmomu
Copy link
Contributor Author

If there are not BC breaks I would release a minor version. To be compatible with Symfony 5 there are some changes that won't be BC like removing ContainerAwareCommand from commands, so when that time comes it should be major version release.

@goetas
Copy link
Collaborator

goetas commented Feb 21, 2020

@franmomu can you please rebase your pr?

@goetas goetas self-assigned this Feb 21, 2020
@franmomu franmomu force-pushed the drop_symfony_versions branch from c4219ff to 5c4c455 Compare February 21, 2020 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants