-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Upgrade information for the choice_value option #16849
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
Conversation
'Disabled' => Status::DISABLED, | ||
'Ignored' => Status::IGNORED, | ||
), | ||
// choices_as_values will default to true in Symfony 3.0 |
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.
and setting it to something different is deprecated
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.
Updated accordingly.
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.
will default -> defaults
@xabbuh Is this good to go? |
👍 LGTM |
After: | ||
|
||
```php | ||
$form->add('status', 'choice', array( |
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.
'choice' -> ChoiceType::class
@nicolas-grekas Good catch, updated. |
Thank you @peterrehm. |
This PR was merged into the 2.8 branch. Discussion ---------- Upgrade information for the choice_value option | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Relates to #14825 and #14377. The behaviour was changed with #16681 so a not in the upgrade information makes sense to me. Commits ------- 28675c9 Reflected the change of the choice_value option in the Upgrade information
Relates to #14825 and #14377. The behaviour was changed with #16681 so a not in the upgrade information makes sense to me.