-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Form] Removed useless code #16725
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
[Form] Removed useless code #16725
Conversation
webmozart
commented
Nov 28, 2015
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | no |
Tests pass? | yes |
Fixed tickets | - |
License | MIT |
Doc PR | - |
👍 |
'choices' => array(), | ||
'choices_as_values' => null, // to be deprecated in 3.1 | ||
'choices_as_values' => true, // to be deprecated in 3.1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was done in order to be able to distinguish between somebody setting the option to true and somebody not touching the option at all. If somebody sets it to true manually, it should trigger a deprecation because he would get an exception when we remove the option.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right, updated
5c0f5b0
to
8add405
Compare
Thank you @webmozart. |
This PR was merged into the 3.0-dev branch. Discussion ---------- [Form] Removed useless code | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Commits ------- 8add405 [Form] Removed useless code
The first test failure should be fixed when merged and the second one seems unrelated. |
This PR was merged into the 2.8 branch. Discussion ---------- [Bridge/Doctrine+Ldap] Fix tests | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Using "choice_list" is deprecated and thus can't work with 3.0 deps loaded. Test upgrades backported from #16725 @csarrazi : the Ldap tests now require the ldap extension. Annotations added. Commits ------- 4819a70 [Bridge/Doctrine+Ldap] Fix tests