From d1583282b7477c07dc368d148bceb222f8edd92e Mon Sep 17 00:00:00 2001 From: Andrii Date: Wed, 18 Dec 2024 12:34:08 +0200 Subject: [PATCH] :package: Avoid deprecated --- tests/Fixtures/Controller/TestGraphqlController.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/Fixtures/Controller/TestGraphqlController.php b/tests/Fixtures/Controller/TestGraphqlController.php index f969b51..d768e61 100644 --- a/tests/Fixtures/Controller/TestGraphqlController.php +++ b/tests/Fixtures/Controller/TestGraphqlController.php @@ -103,9 +103,10 @@ public function getUri(Request $request): string } #[Query] - #[Assertion(for: 'email', constraint: new Assert\Email())] - public function findByMail(string $email = 'a@a.com'): string - { + public function findByMail( + #[Assertion(constraint: new Assert\Email())] + string $email = 'a@a.com' + ): string { return $email; } }