Skip to content

Commit dec0fb6

Browse files
Update choice_loader.rst.inc
1 parent a78ad76 commit dec0fb6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

reference/forms/types/options/choice_loader.rst.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ better performance::
3434

3535
use App\Form\ChoiceList\CustomChoiceLoader;
3636
use App\StaticClass;
37-
use Symfony\Component\Form\AbstractTypeExtension;
37+
use Symfony\Component\Form\AbstractType;
3838
use Symfony\Component\Form\ChoiceList\ChoiceList;
3939
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
4040
use Symfony\Component\OptionsResolver\Options;
4141
use Symfony\Component\OptionsResolver\OptionsResolver;
4242

43-
class ConstantsType extends AbstractTypeExtension
43+
class ConstantsType extends AbstractType
4444
{
45-
public static function getExtendedTypes(): iterable
45+
public function getParent(): string
4646
{
47-
return [ChoiceType::class];
47+
return ChoiceType::class;
4848
}
4949

5050
public function configureOptions(OptionsResolver $resolver)

0 commit comments

Comments
 (0)