内核更新

This commit is contained in:
2016-08-03 23:44:44 +08:00
parent d6e2aa4068
commit 8094b9249a
9 changed files with 181 additions and 125 deletions

View File

@@ -551,7 +551,7 @@ class Validate
break;
case 'boolean':
// 是否为布尔值
$result = $this->filter($value, FILTER_VALIDATE_BOOLEAN);
$result = in_array($value, [0, 1, true, false]);
break;
case 'array':
// 是否为数组