Skip to content

Commit 17705eb

Browse files
committed
[Validator] Change return type from iterable to Generator
1 parent 7ed44ca commit 17705eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validation/custom_constraint.rst

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

663-
public function provideInvalidConstraints(): iterable
663+
public function provideInvalidConstraints(): \Generator
664664
{
665665
yield [new ContainsAlphanumeric(message: 'myMessage')];
666666
// ...

0 commit comments

Comments
 (0)