Skip to content

Commit 76341b2

Browse files
erichardjaviereguiluz
authored andcommitted
Fix choice_label
1 parent 256c55e commit 76341b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/types/enum.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ dots or spaces). If you need more flexibility for these labels, use the
6363

6464
->add('textAlign', EnumType::class, [
6565
'class' => TextAlign::class,
66-
'choice_label' => match ($choice) {
66+
'choice_label' => fn ($choice) => match ($choice) {
6767
TextAlign::Left => 'text_align.left.label',
6868
TextAlign::Center => 'text_align.center.label',
6969
TextAlign::Right => 'text_align.right.label',

0 commit comments

Comments
 (0)