fix deprecations: use fqcn for EntityType in getParent

This commit is contained in:
nobohan 2018-04-05 18:56:31 +02:00
parent 696dd8f0d0
commit 3459755d7a

View File

@ -6,6 +6,7 @@ use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface; use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\OptionsResolver\OptionsResolver; use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Bridge\Doctrine\Form\Type\EntityType;
/** /**
* A type to add a closing motive * A type to add a closing motive
@ -31,7 +32,7 @@ class ClosingMotiveType extends AbstractType
public function getParent() public function getParent()
{ {
return 'entity'; return EntityType::class;
} }
public function configureOptions(OptionsResolver $resolver) public function configureOptions(OptionsResolver $resolver)