Skip to content

Commit

Permalink
Ensure that notBlank takes various variable types into account
Browse files Browse the repository at this point in the history
  • Loading branch information
johanmeiring committed Jan 30, 2017
1 parent a4c9341 commit 1ba6e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Validation/Validation.php
Expand Up @@ -85,7 +85,7 @@ public static function notEmpty($check)
*/
public static function notBlank($check)
{
if (empty($check) && $check !== '0' && $check !== 0) {
if (empty($check) && !is_bool($check) && !is_numeric($check)) {
return false;
}

Expand Down

0 comments on commit 1ba6e21

Please sign in to comment.