modify plugin name

This commit is contained in:
2022-02-25 17:12:15 +08:00
parent 14dd7efda6
commit db725b710d
13 changed files with 60 additions and 60 deletions
+2 -2
View File
@@ -30,10 +30,10 @@ class IntegerValidator extends BaseValidator
return true;
}
if ($type !== self::MIN && $value < $origin) {
return $this->addError('The ' . $field . ' cannot be less than the default value.');
return $this->addError($field,'The ' . $field . ' cannot be less than the default value.');
}
if ($type !== self::MAX && $value > $origin) {
return $this->addError('The ' . $field . ' cannot be greater than the default value.');
return $this->addError($field,'The ' . $field . ' cannot be greater than the default value.');
}
return true;
}, $this->params, $this->value, $this->type);