From df1c8178ec13ae91b0727d2126b9f2962c0b5018 Mon Sep 17 00:00:00 2001 From: Tchama Date: Tue, 8 Sep 2020 15:41:13 +0200 Subject: [PATCH] fix choice deprecation with choices_as_values --- Form/Type/ChoiceWithOtherType.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Form/Type/ChoiceWithOtherType.php b/Form/Type/ChoiceWithOtherType.php index 05b011f22..15a2e4a22 100644 --- a/Form/Type/ChoiceWithOtherType.php +++ b/Form/Type/ChoiceWithOtherType.php @@ -29,7 +29,6 @@ class ChoiceWithOtherType extends AbstractType $options['expanded'] = true; // adding a default value for choice $options['empty_data'] = null; - $options['choices_as_values'] = true; $builder ->add('_other', TextType::class, array('required' => false))