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, ))