Skip to content

Commit

Permalink
chore: switch from deprecated “loose” email validation mode to “html5” (
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathieu committed Jan 12, 2023
1 parent 3cbb9a7 commit d338741
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function createProvider(): \Generator
'email' => [
new NotNull(),
new Length(['min' => 2, 'max' => 255]),
new Email(['mode' => Email::VALIDATION_MODE_LOOSE]),
new Email(['mode' => Email::VALIDATION_MODE_HTML5]),
],
'phone' => new Optional([
new \Symfony\Component\Validator\Constraints\Type(['type' => 'string']),
Expand Down

0 comments on commit d338741

Please sign in to comment.