File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 1919 "require" : {
2020 "php" : " >=7.2" ,
2121 "thecodingmachine/graphqlite" : " ~4.0.0" ,
22- "symfony/validator" : " ^4.0 " ,
22+ "symfony/validator" : " ^4 | ^5 " ,
2323 "doctrine/annotations" : " ^1.6"
2424 },
2525 "require-dev" : {
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ class User
1313{
1414 /**
1515 * @Assert\Email(
16- * message = "The email '{{ value }}' is not a valid email.",
17- * checkMX = true
16+ * message = "The email '{{ value }}' is not a valid email."
1817 * )
1918 */
2019 private $ email ;
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public function testEndToEndThrowException(): void
6767
6868 $ queryString = '
6969 mutation {
70- createUser(email: "foo@fgdjkerbrtehrthjker .com", password: "short") {
70+ createUser(email: "foofgdjkerbrtehrthjker .com", password: "short") {
7171 email
7272 }
7373 }
@@ -81,7 +81,7 @@ public function testEndToEndThrowException(): void
8181 $ result ->setErrorFormatter ([WebonyxErrorHandler::class, 'errorFormatter ' ]);
8282
8383 $ errors = $ result ->toArray (Debug::RETHROW_UNSAFE_EXCEPTIONS )['errors ' ];
84- $ this ->assertSame ('The email \'"foo@fgdjkerbrtehrthjker .com" \' is not a valid email. ' , $ errors [0 ]['message ' ]);
84+ $ this ->assertSame ('The email \'"foofgdjkerbrtehrthjker .com" \' is not a valid email. ' , $ errors [0 ]['message ' ]);
8585 $ this ->assertSame ('email ' , $ errors [0 ]['extensions ' ]['field ' ]);
8686 $ this ->assertSame ('Validate ' , $ errors [0 ]['extensions ' ]['category ' ]);
8787 $ this ->assertSame ('This value is too short. It should have 8 characters or more. ' , $ errors [1 ]['message ' ]);
You can’t perform that action at this time.
0 commit comments