fix deprecations: remove array in setAllowedTypes

This commit is contained in:
nobohan 2018-04-05 10:32:33 +02:00
parent 3ea3beb1d5
commit 5afaff841c

View File

@ -145,10 +145,8 @@ trait AppendScopeChoiceTypeTrait
{
$resolver
->setRequired(array('center', 'role'))
->setAllowedTypes(array(
'center' => 'Chill\MainBundle\Entity\Center',
'role' => 'Symfony\Component\Security\Core\Role\Role'
))
->setAllowedTypes('center', 'Chill\MainBundle\Entity\Center')
->setAllowedTypes('role', 'Symfony\Component\Security\Core\Role\Role')
;
}