From ba5b823f7b4d39ea38e85817685d86a26814fc78 Mon Sep 17 00:00:00 2001 From: Vincent Chareunphol Date: Wed, 1 Nov 2023 12:14:43 +0100 Subject: [PATCH] [Question helper] Add more accuracy on possible answers --- components/console/helpers/questionhelper.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/console/helpers/questionhelper.rst b/components/console/helpers/questionhelper.rst index 7a78688e259..2ba340cdd8f 100644 --- a/components/console/helpers/questionhelper.rst +++ b/components/console/helpers/questionhelper.rst @@ -52,7 +52,8 @@ the following to your command:: } 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``. +answers with ``y`` (or any word, expression starting with ``y`` due to default answer regex, e.g ``yeti``) it returns ``true`` or ``false`` otherwise, e.g. ``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 valid input. If