This commit is contained in:
2023-12-18 02:58:41 +08:00
parent 69520f56fd
commit 3bb6465154
+1 -1
View File
@@ -120,9 +120,9 @@ class Validator
if (!isset($params[$name])) {
if (isset($rules[0])) {
if ($rules[0][0] instanceof RequiredValidatorFilter) {
unset($rules[0]);
return $this->addError('The request field ' . $name . ' is mandatory and indispensable');
}
unset($rules[0]);
}
}