We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 256c55e commit 76341b2Copy full SHA for 76341b2
reference/forms/types/enum.rst
@@ -63,7 +63,7 @@ dots or spaces). If you need more flexibility for these labels, use the
63
64
->add('textAlign', EnumType::class, [
65
'class' => TextAlign::class,
66
- 'choice_label' => match ($choice) {
+ 'choice_label' => fn ($choice) => match ($choice) {
67
TextAlign::Left => 'text_align.left.label',
68
TextAlign::Center => 'text_align.center.label',
69
TextAlign::Right => 'text_align.right.label',
0 commit comments