mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
fix deprecations: use fqcn instead of 'choice'
This commit is contained in:
parent
2ac4a84114
commit
71a375b37d
@ -4,6 +4,8 @@ namespace Chill\PersonBundle\Form\Type;
|
|||||||
|
|
||||||
use Symfony\Component\Form\AbstractType;
|
use Symfony\Component\Form\AbstractType;
|
||||||
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
|
||||||
|
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
|
||||||
|
|
||||||
use Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -19,7 +21,7 @@ class GenderType extends AbstractType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function getParent() {
|
public function getParent() {
|
||||||
return 'choice';
|
return ChoiceType::class;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setDefaultOptions(OptionsResolverInterface $resolver) {
|
public function setDefaultOptions(OptionsResolverInterface $resolver) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user