Skip to content

Commit 40aa596

Browse files
committed
Fix description of ConfirmationQuestion
In my testing and in my brief reading of the Symfony\Component\Console\Question code, the old description of re-asking the question does not occur and I see no way for that to happen. That would be nice, desirable behavior. However, the truth is the ask() method always returns ``true`` or ``false`` upon any input.
1 parent 98e6c09 commit 40aa596

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/console/helpers/questionhelper.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ In this case, the user will be asked "Continue with this action?". If the user
4141
answers with ``y`` it returns ``true`` or ``false`` if they answer with ``n``.
4242
The second argument to
4343
:method:`Symfony\\Component\\Console\\Question\\ConfirmationQuestion::__construct`
44-
is the default value to return if the user doesn't enter any input. Any other
45-
input will ask the same question again.
44+
is the default value to return if the user doesn't enter any valid input. If
45+
second argument is not provided, ``true`` is assumed.
4646

4747
Asking the User for Information
4848
-------------------------------

0 commit comments

Comments
 (0)