From 44596bf58df2775e8fa9b513eea39e62c428b8ff Mon Sep 17 00:00:00 2001 From: nobohan Date: Thu, 5 Apr 2018 16:23:23 +0200 Subject: [PATCH] fix deprecations: use fqcn for collectionType in getParent() --- Form/Type/ChoicesType.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Form/Type/ChoicesType.php b/Form/Type/ChoicesType.php index 581b2620b..30c44527c 100644 --- a/Form/Type/ChoicesType.php +++ b/Form/Type/ChoicesType.php @@ -3,22 +3,22 @@ namespace Chill\CustomFieldsBundle\Form\Type; use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\FormBuilderInterface; - +use Symfony\Component\Form\Extension\Core\Type\CollectionType; /** * * @author Julien Fastré - * + * */ class ChoicesType extends AbstractType -{ +{ public function getName() { return 'cf_choices'; } - + public function getParent() { - return 'collection'; + return CollectionType::class; } -} \ No newline at end of file +}