Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\ChoiceList\Factory\CachingFactoryDecorator;
use Symfony\Component\Form\Exception\RuntimeException;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\Options;
use Symfony\Component\OptionsResolver\OptionsResolver;
Expand Down Expand Up @@ -274,7 +275,7 @@ abstract public function getLoader(ObjectManager $manager, $queryBuilder, $class

public function getParent()
{
return 'Symfony\Component\Form\Extension\Core\Type\ChoiceType';
return ChoiceType::class;
}

public function reset()
Expand Down
3 changes: 2 additions & 1 deletion src/Symfony/Component/Form/AbstractType.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Symfony\Component\Form;

use Symfony\Component\Form\Extension\Core\Type\FormType;
use Symfony\Component\Form\Util\StringUtil;
use Symfony\Component\OptionsResolver\OptionsResolver;

Expand Down Expand Up @@ -60,6 +61,6 @@ public function getBlockPrefix()
*/
public function getParent()
{
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
return FormType::class;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
namespace Symfony\Component\Form\Tests\Fixtures;

use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
use Symfony\Component\OptionsResolver\OptionsResolver;

/**
Expand All @@ -38,6 +39,6 @@ public function configureOptions(OptionsResolver $resolver)
*/
public function getParent(): ?string
{
return 'Symfony\Component\Form\Extension\Core\Type\ChoiceType';
return ChoiceType::class;
}
}