Skip to content

Commit d318602

Browse files
committed
[#2074] Minor tweaks for DialogHelper::select method
1 parent 87710a8 commit d318602

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

components/console/helpers/dialoghelper.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,12 @@ You can also ask and validate a hidden response::
150150
If you want to allow the response to be visible if it cannot be hidden for
151151
some reason, pass true as the fifth argument.
152152

153-
Let the user choose from a list of answers
153+
Let the user choose from a list of Answers
154154
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
155155

156156
.. versionadded:: 2.2
157-
The ``select`` method was added in Symfony 2.2.
157+
The :method:`Symfony\\Component\\Console\\Helper\\DialogHelper::select` method
158+
was added in Symfony 2.2.
158159

159160
If you have a predefined set of answers the user can choose from, you
160161
could use the ``ask`` method described above or, to make sure the user
@@ -183,7 +184,7 @@ The option which should be selected by default is provided with the fourth
183184
parameter. The default is ``null``, which means that no option is the default one.
184185

185186
If the user enters an invalid string, an error message is shown and the user
186-
is asked to provide the answer another time, till he enters a valid string
187+
is asked to provide the answer another time, until she enters a valid string
187188
or the maximum attempts is reached (which you can define in the fifth
188189
parameter). The default value for the attempts is ``false``, which means infinite
189190
attempts. You can define your own error message in the sixth parameter.

0 commit comments

Comments
 (0)