From 2cfe83e69c3211cd9a328c86ec38cdb75f78e746 Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 5 Apr 2018 10:33:23 +0200 Subject: [PATCH] fix deprecations: remove array in setAllowedTypes --- Form/Type/ChoiceWithOtherType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Form/Type/ChoiceWithOtherType.php b/Form/Type/ChoiceWithOtherType.php index beab31337..cb003b07d 100644 --- a/Form/Type/ChoiceWithOtherType.php +++ b/Form/Type/ChoiceWithOtherType.php @@ -49,7 +49,7 @@ class ChoiceWithOtherType extends AbstractType { $resolver ->setRequired(array('choices')) - ->setAllowedTypes(array('choices' => array('array'))) + ->setAllowedTypes('choices', array('array')) ->setDefaults(array( 'multiple' => false, ))