modify plugin name

This commit is contained in:
2022-03-01 16:36:31 +08:00
parent a87b6288be
commit 74eac11f6c
+1 -1
View File
@@ -21,7 +21,7 @@ class EnumValidator extends BaseValidator
{
return $this->_validator($this->field, function ($field, $params, $values) {
if (!in_array($params[$field] ?? null, $values)) {
return $this->addError($field,'The param :attribute value only in ' . implode(',', $values));
return $this->addError($field, 'The param :attribute value(' . $params[$field] . ') only in ' . implode(',', $values));
}
return true;
}, $this->params, $this->value);