Skip to content

Commit 07cf96e

Browse files
committed
Changing annotations name
1 parent 16c4ac2 commit 07cf96e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Fixtures/Controller/TestGraphqlController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
use GraphQL\Error\Error;
88
use Porpaginas\Arrays\ArrayResult;
99
use Symfony\Component\HttpFoundation\Request;
10-
use Symfony\Component\Validator\Constraints as Assertion;
10+
use Symfony\Component\Validator\Constraints as Assert;
1111
use TheCodingMachine\GraphQLite\Annotations\FailWith;
1212
use TheCodingMachine\GraphQLite\Annotations\Logged;
1313
use TheCodingMachine\GraphQLite\Annotations\Right;
@@ -17,7 +17,7 @@
1717
use TheCodingMachine\GraphQLite\Annotations\Query;
1818
use TheCodingMachine\GraphQLite\Exceptions\GraphQLAggregateException;
1919
use TheCodingMachine\GraphQLite\Exceptions\GraphQLException;
20-
use TheCodingMachine\Graphqlite\Validator\Annotations\Assert;
20+
use TheCodingMachine\Graphqlite\Validator\Annotations\Assertion;
2121
use TheCodingMachine\Graphqlite\Validator\Fixtures\Types\User;
2222

2323
class TestGraphqlController
@@ -131,7 +131,7 @@ public function getUri(Request $request): string
131131

132132
/**
133133
* @Query
134-
* @Assert(for="email", constraint=@Assertion\Email())
134+
* @Assertion(for="email", constraint=@Assert\Email())
135135
*/
136136
public function findByMail(string $email = '[email protected]'): string
137137
{

0 commit comments

Comments
 (0)