Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit215cacf

Browse files
committed
bug#4423 Fix description of ConfirmationQuestion (cxj)
This PR was merged into the 2.5 branch.Discussion----------Fix description of ConfirmationQuestionIn 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 parents583ec92 +40aa596 commit215cacf

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 anyvalidinput. If
45+
second argument is not provided, ``true`` is assumed.
4646

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp