Skip to content

Commit 2f61e28

Browse files
committed
[Form] Minor: Fix comment in ChoiceType
1 parent aec55f4 commit 2f61e28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)