We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19a15a4 commit bcb025eCopy full SHA for bcb025e
lib/classes/Swift/Validate.php
@@ -35,7 +35,7 @@ public static function email($email)
35
->lookup('mime.grammar');
36
}
37
38
- return preg_match(
+ return (bool) preg_match(
39
'/^' . self::$grammar->getDefinition('addr-spec') . '$/D',
40
$email
41
);
0 commit comments