Skip to content

Commit 3be17d4

Browse files
committed
minor #19199 Fix return type deprecations (tbredillet)
This PR was merged into the 6.4 branch. Discussion ---------- Fix return type deprecations Fix return type deprecations Commits ------- b0f8041 Fix return type deprecations
2 parents f8bd2ab + b0f8041 commit 3be17d4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ better performance::
5757
return ChoiceType::class;
5858
}
5959

60-
public function configureOptions(OptionsResolver $resolver)
60+
public function configureOptions(OptionsResolver $resolver): void
6161
{
6262
$resolver->setDefaults([
6363
// the example below will create a CallbackChoiceLoader from the callable

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ of the form.
1313
With customized error mapping, you can do better: map the error to the city
1414
field so that it displays above it::
1515

16-
public function configureOptions(OptionsResolver $resolver)
16+
public function configureOptions(OptionsResolver $resolver): void
1717
{
1818
$resolver->setDefaults([
1919
'error_mapping' => [

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ For ``null`` the validator will just use the ``Default`` group.
1111
If you specify the groups as an array or string they will be used by the
1212
validator as they are::
1313

14-
public function configureOptions(OptionsResolver $resolver)
14+
public function configureOptions(OptionsResolver $resolver): void
1515
{
1616
$resolver->setDefaults([
1717
'validation_groups' => 'Registration',
@@ -31,7 +31,7 @@ the option. Symfony will then pass the form when calling it::
3131
use Symfony\Component\OptionsResolver\OptionsResolver;
3232

3333
// ...
34-
public function configureOptions(OptionsResolver $resolver)
34+
public function configureOptions(OptionsResolver $resolver): void
3535
{
3636
$resolver->setDefaults([
3737
'validation_groups' => function (FormInterface $form): array {
@@ -69,7 +69,7 @@ Here's an example::
6969
class MyType extends AbstractType
7070
{
7171
// ...
72-
public function configureOptions(OptionsResolver $resolver)
72+
public function configureOptions(OptionsResolver $resolver): void
7373
{
7474
$resolver->setDefaults([
7575
'validation_groups' => new GroupSequence(['First', 'Second']),

0 commit comments

Comments
 (0)