Skip to content

Commit b4e41d2

Browse files
committed
Fix positive email test
1 parent 845a6a4 commit b4e41d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TgUtils/Utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public static function isEmpty($s) {
127127
* @return boolean TRUE when string is an email.
128128
*/
129129
public static function isEmail($s) {
130-
return filter_var($s, FILTER_VALIDATE_EMAIL);
130+
return is_string(filter_var($s, FILTER_VALIDATE_EMAIL));
131131
}
132132

133133
/**

0 commit comments

Comments
 (0)