Skip to content

Commit 019fa72

Browse files
committed
Switched from parent type hard-coded FQCN to ::class keyword.
1 parent ec58908 commit 019fa72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Form/Type/DoctrineType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use Symfony\Component\Form\AbstractType;
2323
use Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator;
2424
use Symfony\Component\Form\Exception\RuntimeException;
25+
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
2526
use Symfony\Component\Form\FormBuilderInterface;
2627
use Symfony\Component\OptionsResolver\Options;
2728
use Symfony\Component\OptionsResolver\OptionsResolver;
@@ -274,7 +275,7 @@ abstract public function getLoader(ObjectManager $manager, $queryBuilder, $class
274275

275276
public function getParent()
276277
{
277-
return 'Symfony\Component\Form\Extension\Core\Type\ChoiceType';
278+
return ChoiceType::class;
278279
}
279280

280281
public function reset()

0 commit comments

Comments
 (0)