This commit is contained in:
xl
2023-07-07 17:24:03 +08:00
parent 448b1a68fc
commit d18994fde2
11 changed files with 310 additions and 342 deletions
-3
View File
@@ -29,9 +29,6 @@ class ArrayValidator extends BaseValidator
{
return $this->_validator($this->field, function ($field, $params) {
$value = $params[$field] ?? null;
if (empty($value)) {
return true;
}
if (!is_array($value)) {
return $this->addError($field, 'The param :attribute must a array');
}