Skip to content

Commit b9e2005

Browse files
1 parent 644ac22 commit b9e2005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/console/helpers/questionhelper.rst

Lines changed: 1 addition & 1 deletion
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)