Skip to content
Permalink
Browse files

Ensure that notBlank takes various variable types into account

  • Loading branch information...
johanmeiring committed Jan 30, 2017
1 parent a4c9341 commit 1ba6e2180ff3d3122b18e7525d336f70b435d6c6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Validation/Validation.php
@@ -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;
}

0 comments on commit 1ba6e21

Please sign in to comment.
You can’t perform that action at this time.