diff --git a/reference/forms/types/options/choice_label.rst.inc b/reference/forms/types/options/choice_label.rst.inc index 1b23a4307ae..bc71a87ea5f 100644 --- a/reference/forms/types/options/choice_label.rst.inc +++ b/reference/forms/types/options/choice_label.rst.inc @@ -17,7 +17,7 @@ more control:: 'maybe' => null, ), 'choice_label' => function ($choiceValue, $key, $value) { - if ($value == choiceValue) { + if ($value == $choiceValue) { return 'Definitely!'; }