mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
fix deprecations: remove array in setAllowedTypes
This commit is contained in:
parent
3ea3beb1d5
commit
5afaff841c
@ -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')
|
||||
;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user