Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit cadc42b

Browse files
ThomasLandaueralanzarli
authored and
alanzarli
committedJan 21, 2025
1 parent ff5297a commit cadc42b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎components/console/helpers/questionhelper.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ but ``red`` could be set instead (could be more explicit)::
128128
$question = new ChoiceQuestion(
129129
'Please select your favorite color (defaults to red)',
130130
// choices can also be PHP objects that implement __toString() method
131-
['red', 'blue', 'yellow'],
131+
['red', 'blue', 'yellow'], // pass an associative array to display custom indices: [3 => 'red', 7 => 'blue']
132132
0
133133
);
134134
$question->setErrorMessage('Color %s is invalid.');

0 commit comments

Comments
 (0)
Please sign in to comment.