Skip to content

Commit e87140b

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: quote all dumped unicode spaces Switched from parent type hard-coded FQCN to `::class` keyword.
2 parents c381744 + c3cf86e commit e87140b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

AbstractType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Form;
1313

14+
use Symfony\Component\Form\Extension\Core\Type\FormType;
1415
use Symfony\Component\Form\Util\StringUtil;
1516
use Symfony\Component\OptionsResolver\OptionsResolver;
1617

@@ -60,6 +61,6 @@ public function getBlockPrefix()
6061
*/
6162
public function getParent()
6263
{
63-
return 'Symfony\Component\Form\Extension\Core\Type\FormType';
64+
return FormType::class;
6465
}
6566
}

Tests/Fixtures/ChoiceSubType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Form\Tests\Fixtures;
1313

1414
use Symfony\Component\Form\AbstractType;
15+
use Symfony\Component\Form\Extension\Core\Type\ChoiceType;
1516
use Symfony\Component\OptionsResolver\OptionsResolver;
1617

1718
/**
@@ -38,6 +39,6 @@ public function configureOptions(OptionsResolver $resolver)
3839
*/
3940
public function getParent(): ?string
4041
{
41-
return 'Symfony\Component\Form\Extension\Core\Type\ChoiceType';
42+
return ChoiceType::class;
4243
}
4344
}

0 commit comments

Comments
 (0)