Skip to content

Commit b6d52c2

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [Question helper] Add more accuracy on multiple choices answers
2 parents c86dc72 + e1d8df7 commit b6d52c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

components/console/helpers/questionhelper.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ this use :method:`Symfony\\Component\\Console\\Question\\ChoiceQuestion::setMult
180180
}
181181

182182
Now, when the user enters ``1,2``, the result will be:
183-
``You have just selected: blue, yellow``.
183+
``You have just selected: blue, yellow``. The user can also enter strings
184+
(e.g. ``blue,yellow``) and even mix strings and the index of the choices
185+
(e.g. ``blue,2``).
184186

185187
If the user does not enter anything, the result will be:
186188
``You have just selected: red, blue``.

0 commit comments

Comments
 (0)