Skip to content

Commit

Permalink
📦 Avoid deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-demb committed Dec 18, 2024
1 parent 67d2b07 commit d158328
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/Fixtures/Controller/TestGraphqlController.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ public function getUri(Request $request): string
}

#[Query]
#[Assertion(for: 'email', constraint: new Assert\Email())]
public function findByMail(string $email = '[email protected]'): string
{
public function findByMail(
#[Assertion(constraint: new Assert\Email())]
string $email = '[email protected]'
): string {
return $email;
}
}

0 comments on commit d158328

Please sign in to comment.