Skip to content

Commit bcb025e

Browse files
committed
fixed returned value
1 parent 19a15a4 commit bcb025e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/classes/Swift/Validate.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static function email($email)
3535
->lookup('mime.grammar');
3636
}
3737

38-
return preg_match(
38+
return (bool) preg_match(
3939
'/^' . self::$grammar->getDefinition('addr-spec') . '$/D',
4040
$email
4141
);

0 commit comments

Comments
 (0)