From 5afaff841ce4e44bb810aaf0c9a252553620a7e7 Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 5 Apr 2018 10:32:33 +0200 Subject: [PATCH] fix deprecations: remove array in setAllowedTypes --- Form/Type/AppendScopeChoiceTypeTrait.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Form/Type/AppendScopeChoiceTypeTrait.php b/Form/Type/AppendScopeChoiceTypeTrait.php index 584d8cfcd..2cddce3cd 100644 --- a/Form/Type/AppendScopeChoiceTypeTrait.php +++ b/Form/Type/AppendScopeChoiceTypeTrait.php @@ -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') ; }