Skip to content

Commit af35a5e

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: - [Question helper] Add more accuracy on possible answers [Validator] Change return type from iterable to Generator
2 parents 83b7a31 + a505d27 commit af35a5e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

components/console/helpers/questionhelper.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@ the following to your command::
5252
}
5353

5454
In this case, the user will be asked "Continue with this action?". If the user
55-
answers with ``y`` it returns ``true`` or ``false`` if they answer with ``n``.
55+
answers with ``y`` (or any word, expression starting with ``y`` due to default
56+
answer regex, e.g ``yeti``) it returns ``true`` or ``false`` otherwise, e.g. ``n``.
57+
5658
The second argument to
5759
:method:`Symfony\\Component\\Console\\Question\\ConfirmationQuestion::__construct`
5860
is the default value to return if the user doesn't enter any valid input. If

validation/custom_constraint.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ class to simplify writing unit tests for your custom constraints::
543543
->assertRaised();
544544
}
545545

546-
public function provideInvalidConstraints(): iterable
546+
public function provideInvalidConstraints(): \Generator
547547
{
548548
yield [new ContainsAlphanumeric(message: 'myMessage')];
549549
// ...

0 commit comments

Comments
 (0)