Skip to content

Commit 1f4d614

Browse files
committed
Merge branch '2.7' into 2.8
* 2.7: [Console] Do not duplicate Helper::strlen() code [FrameworkBundle] Adding the extension XML [Form] Minor: Fix comment in ChoiceType [FrameworkBundle] AbstractConfigCommand: do not try registering bundles twice
2 parents 379199c + 2f61e28 commit 1f4d614

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)