Skip to content

Commit a789350

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: - [Question helper] Add more accuracy on possible answers [Validator] Change return type from iterable to Generator
2 parents 8d2ad3c + ff74eda commit a789350

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
@@ -539,7 +539,7 @@ class to simplify writing unit tests for your custom constraints::
539539
->assertRaised();
540540
}
541541

542-
public function provideInvalidConstraints(): iterable
542+
public function provideInvalidConstraints(): \Generator
543543
{
544544
yield [new ContainsAlphanumeric(message: 'myMessage')];
545545
// ...

0 commit comments

Comments
 (0)