minor #22673 [Form] Minor: Fix comment in ChoiceType (issei-m)
This PR was merged into the 2.7 branch.
Discussion
----------
[Form] Minor: Fix comment in ChoiceType
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no <!-- don't forget updating UPGRADE-*.md files -->
| Tests pass? | n/a
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
Forgotten to be updated in: #21957
Commits
-------
a49d79c856
[Form] Minor: Fix comment in ChoiceType
This commit is contained in:
commit
2d72b0b8ce
@ -162,7 +162,7 @@ class ChoiceType extends AbstractType
|
|||||||
}
|
}
|
||||||
|
|
||||||
// To avoid issues when the submitted choices are arrays (i.e. array to string conversions),
|
// To avoid issues when the submitted choices are arrays (i.e. array to string conversions),
|
||||||
// we have to ensure that all elements of the submitted choice data are strings or null.
|
// we have to ensure that all elements of the submitted choice data are NULL, strings or ints.
|
||||||
$builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
|
$builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
|
||||||
$data = $event->getData();
|
$data = $event->getData();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user