Skip to content

Commit c753260

Browse files
committed
Merge pull request #3265 from bicpi/fix_method_description
[Components][Console] Fix askConfirmation() description
2 parents 650dd51 + cf7e31f commit c753260

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

components/console/helpers/dialoghelper.rst

+6-4
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,12 @@ the following to your command::
3131
return;
3232
}
3333

34-
In this case, the user will be asked "Continue with this action?", and will return
35-
``true`` if the user answers with ``y`` or false in any other case. The third
36-
argument to ``askConfirmation`` is the default value to return if the user doesn't
37-
enter any input.
34+
In this case, the user will be asked "Continue with this action?", and will
35+
return ``true`` if the user answers with ``y`` or ``false`` if the user answers
36+
with ``n``. The third argument to
37+
:method:`Symfony\\Component\\Console\\Helper\\DialogHelper::askConfirmation`
38+
is the default value to return if the user doesn't enter any input. Any other
39+
input will ask the same question again.
3840

3941
Asking the User for Information
4042
-------------------------------

0 commit comments

Comments
 (0)