8000 minor #22673 [Form] Minor: Fix comment in ChoiceType (issei-m) · symfony/symfony@2d72b0b · GitHub
[go: up one dir, main page]

Skip to content

Commit 2d72b0b

Browse files
committed
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 ------- a49d79c [Form] Minor: Fix comment in ChoiceType
2 parents 71efe3f + a49d79c commit 2d72b0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
162162
}
163163

164164
// To avoid issues when the submitted choices are arrays (i.e. array to string conversions),
165-
// we have to ensure that all elements of the submitted choice data are strings or null.
165+
// we have to ensure that all elements of the submitted choice data are NULL, strings or ints.
166166
$builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
167167
$data = $event->getData();
168168

0 commit comments

Comments
 (0)
0