Permalink
Browse files

bug #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
  • Loading branch information...
weaverryan committed Feb 24, 2015
2 parents 583ec92 + 40aa596 commit 215cacfc51e344c0862dc8ce3b15cf8bd7a694b4
Showing with 2 additions and 2 deletions.
  1. +2 −2 components/console/helpers/questionhelper.rst
@@ -41,8 +41,8 @@ In this case, the user will be asked "Continue with this action?". If the user
answers with ``y`` it returns ``true`` or ``false`` if they answer with ``n``.
The second argument to
:method:`Symfony\\Component\\Console\\Question\\ConfirmationQuestion::__construct`
is the default value to return if the user doesn't enter any input. Any other
input will ask the same question again.
is the default value to return if the user doesn't enter any valid input. If
second argument is not provided, ``true`` is assumed.
Asking the User for Information
-------------------------------

0 comments on commit 215cacf

Please sign in to comment.