Skip to content

Commit c5e63b7

Browse files
authored
Fix choice_label
1 parent 4c8ec4a commit c5e63b7

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
@@ -59,7 +59,7 @@ dots or spaces). If you need more flexibility for these labels, use the
5959

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

0 commit comments

Comments
 (0)