fix deprecations: remove array in setAllowedTypes

This commit is contained in:
nobohan 2018-04-05 10:33:23 +02:00
parent a35fd76053
commit 2cfe83e69c

View File

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