Skip to content

Commit 215cacf

Browse files
committed
bug symfony#4423 Fix description of ConfirmationQuestion (cxj)
This PR was merged into the 2.5 branch. Discussion ---------- 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. Commits ------- 40aa596 Fix description of ConfirmationQuestion
2 parents 583ec92 + 40aa596 commit 215cacf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/console/helpers/questionhelper.rst

Lines changed: 2 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy