Skip to content

Commit e256d86

Browse files
authored
debug
1 parent eb61a8f commit e256d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helpers/Param.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static function check(& $json, & $rules)
105105
}
106106
}
107107
// [2.4] 空值检查
108-
if ($json->$key === '') {
108+
if (isset($json->$key) && $json->$key === '') {
109109
if ($rule['empty']) {
110110
continue;
111111
} else {

0 commit comments

Comments
 (0)