Skip to content

Commit 1d6402a

Browse files
authored
isRealEmpty 修复对 false的版本
1 parent 362abd2 commit 1d6402a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Validate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static function isRegular($variable, $regular)
3636
*/
3737
public static function isRealEmpty($variable)
3838
{
39-
if(empty($variable) && $variable !== 0 && $variable !== "0"){
39+
if(empty($variable) && $variable !== 0 && $variable !== "0" && $variable !== false){
4040
return true;
4141
}
4242

@@ -303,4 +303,4 @@ public static function isExtraLong($str, $max_len, $encoding = 'UTF-8')
303303

304304
return false;
305305
}
306-
}
306+
}

0 commit comments

Comments
 (0)