From c9ce6055b25a1126f34d9f1cb922c123878cc8af Mon Sep 17 00:00:00 2001 From: nobohan Date: Wed, 4 Apr 2018 16:19:26 +0200 Subject: [PATCH] fix deprecations: use fqcn for 'choice' --- Form/Type/Select2ChoiceType.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Form/Type/Select2ChoiceType.php b/Form/Type/Select2ChoiceType.php index 3c6951974..d3fb0bc63 100644 --- a/Form/Type/Select2ChoiceType.php +++ b/Form/Type/Select2ChoiceType.php @@ -22,6 +22,7 @@ namespace Chill\MainBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\OptionsResolver\OptionsResolver; +use Symfony\Component\Form\Extension\Core\Type\ChoiceType; /** * Extends choice to allow adding select2 library on widget @@ -37,7 +38,7 @@ class Select2ChoiceType extends AbstractType public function getParent() { - return 'choice'; + return ChoiceType::class; } public function configureOptions(OptionsResolver $resolver)