From a49d79c856ebc0d6e3ffdc6074fdabb19ee7936d Mon Sep 17 00:00:00 2001 From: "Issei.M" Date: Tue, 9 May 2017 13:05:50 +0900 Subject: [PATCH] [Form] Minor: Fix comment in ChoiceType --- src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php b/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php index 1392c81a59..a45cb3a278 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php @@ -162,7 +162,7 @@ class ChoiceType extends AbstractType } // 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) { $data = $event->getData();