Skip to content

Commit 504dc08

Browse files
committed
📦 Avoid deprecated
1 parent 710bc2c commit 504dc08

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/Fixtures/Controller/TestGraphqlController.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,10 @@ public function getUri(Request $request): string
103103
}
104104

105105
#[Query]
106-
#[Assertion(for: 'email', constraint: new Assert\Email())]
107-
public function findByMail(string $email = '[email protected]'): string
108-
{
106+
public function findByMail(
107+
#[Assertion(constraint: new Assert\Email())]
108+
string $email = '[email protected]'
109+
): string {
109110
return $email;
110111
}
111112
}

0 commit comments

Comments
 (0)