We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd4f5c2 commit 0a27ba8Copy full SHA for 0a27ba8
2 files changed
src/Value/Email.php
@@ -22,7 +22,7 @@
22
23
private function __construct(string $value)
24
{
25
- if ($value === '' || filter_var($value, FILTER_VALIDATE_EMAIL) === false) {
+ if ($value === '' || filter_var($value, FILTER_VALIDATE_EMAIL, FILTER_FLAG_EMAIL_UNICODE) === false) {
26
throw new InvalidArgumentException('The email address is invalid.');
27
}
28
tests/Unit/Value/EmailTest.php
@@ -36,6 +36,7 @@ public function testWithInvalidValue(string $value): void
36
public static function validValues(): Iterator
37
38
yield 'user@example.com' => ['user@example.com'];
39
+ yield 'testuserñ@example.com' => ['testuserñ@example.com'];
40
41
42
/**
0 commit comments