diff --git a/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php b/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php index 26f7c80f17..61907067f5 100644 --- a/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php +++ b/src/Symfony/Component/Form/Extension/Core/Type/ChoiceType.php @@ -357,7 +357,7 @@ class ChoiceType extends AbstractType }; $choicesAsValuesNormalizer = function (Options $options, $choicesAsValues) use ($that) { - if (true !== $choicesAsValues) { + if (true !== $choicesAsValues && null === $options['choice_loader']) { @trigger_error(sprintf('The value "false" for the "choices_as_values" option of the "%s" form type (%s) is deprecated since version 2.8 and will not be supported anymore in 3.0. Set this option to "true" and flip the contents of the "choices" option instead.', $that->getName(), __CLASS__), E_USER_DEPRECATED); }