fix deprecations: use fqcn instead of 'choice'

This commit is contained in:
nobohan 2018-04-04 16:40:36 +02:00
parent 2ac4a84114
commit 71a375b37d

View File

@ -4,6 +4,8 @@ namespace Chill\PersonBundle\Form\Type;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Chill\PersonBundle\Entity\Person;
/**
@ -19,7 +21,7 @@ class GenderType extends AbstractType {
}
public function getParent() {
return 'choice';
return ChoiceType::class;
}
public function setDefaultOptions(OptionsResolverInterface $resolver) {