fix deprecations: use fqcn for collectionType in getParent()

This commit is contained in:
nobohan 2018-04-05 16:23:23 +02:00
parent 4c4f4b5ca7
commit 44596bf58d

View File

@ -3,22 +3,22 @@ namespace Chill\CustomFieldsBundle\Form\Type;
use Symfony\Component\Form\AbstractType; use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\Form\Extension\Core\Type\CollectionType;
/** /**
* *
* @author Julien Fastré <julien.fastre@champs-libres.coop> * @author Julien Fastré <julien.fastre@champs-libres.coop>
* *
*/ */
class ChoicesType extends AbstractType class ChoicesType extends AbstractType
{ {
public function getName() public function getName()
{ {
return 'cf_choices'; return 'cf_choices';
} }
public function getParent() public function getParent()
{ {
return 'collection'; return CollectionType::class;
} }
} }