Skip to content

Commit ae69778

Browse files
committed
Fix PHP 8.4 issue
1 parent acbf71a commit ae69778

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Client.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public static function normalize(string $email): string
6868
assert(defined('MB_CASE_FOLD') && function_exists('idn_to_ascii'));
6969

7070
$localEnd = strrpos($email, '@');
71-
if (false === $localEnd) {
71+
if (false === $localEnd || $localEnd + 1 === strlen($email)) {
7272
return '';
7373
}
7474

0 commit comments

Comments
 (0)