Skip to content

Commit

Permalink
Fix positive email test
Browse files Browse the repository at this point in the history
  • Loading branch information
technicalguru committed May 28, 2022
1 parent 845a6a4 commit b4e41d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/TgUtils/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public static function isEmpty($s) {
* @return boolean TRUE when string is an email.
*/
public static function isEmail($s) {
return filter_var($s, FILTER_VALIDATE_EMAIL);
return is_string(filter_var($s, FILTER_VALIDATE_EMAIL));
}

/**
Expand Down

0 comments on commit b4e41d2

Please sign in to comment.