File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed
Original file line numberDiff line numberDiff line change
@@ -287,10 +287,10 @@ if you needed to know the name of something, you might do the following::
287287
'foo'
288288
);
289289

290-
Ask and validate response
291-
-------------------------
290+
Ask Questions and validate the Response
291+
---------------------------------------
292292

293-
You can easily ask question and validate response with built-in methods::
293+
You can easily ask a question and validate the response with built-in methods::
294294

295295
$dialog = $this->getHelperSet()->get('dialog');
296296

@@ -310,9 +310,10 @@ You can easily ask question and validate response with built-in methods::
310310
'foo'
311311
);
312312

313-
The validation callback can be any callable PHP function, the fourth argument is
314-
the maximum number of attempts, set it to ``false`` for unlimited attempts. The
315-
fifth argument is the default value.
313+
The validation callback can be any callable PHP function and the fourth argument
314+
to :method:`Symfony\\Component\\Console\\Helper::askAndValidate` is the maximum
315+
number of attempts - set it to ``false`` (the default value) for unlimited
316+
attempts. The fifth argument is the default value.
316317

317318
The callback must throw an exception in case the value is not acceptable. Please
318319
note that the callback **must** return the value. The value can be modified by

0 commit comments

Comments
 (0)