From 17705ebf7be6f71f6b6f764dd17543e959286cd6 Mon Sep 17 00:00:00 2001 From: mohamed Date: Thu, 19 Oct 2023 11:04:07 +0200 Subject: [PATCH] [Validator] Change return type from iterable to Generator --- validation/custom_constraint.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validation/custom_constraint.rst b/validation/custom_constraint.rst index 0dffa0fa29d..16a02c12894 100644 --- a/validation/custom_constraint.rst +++ b/validation/custom_constraint.rst @@ -660,7 +660,7 @@ class to simplify writing unit tests for your custom constraints:: ->assertRaised(); } - public function provideInvalidConstraints(): iterable + public function provideInvalidConstraints(): \Generator { yield [new ContainsAlphanumeric(message: 'myMessage')]; // ...