mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 00:24:40 +00:00
message not consistent for MinMaxValidator
This commit is contained in:
parent
5e07d4110b
commit
867ecd70ce
@ -55,7 +55,7 @@ class MinMaxValidator extends Validator implements ValidatorInterface
|
||||
$msg = $this->getOption('message');
|
||||
|
||||
if (is_numeric($value) == false || $value < $min || $value > $max) {
|
||||
$validator->appendMessage(new Message($msg, $attribute, 'MaxMinValidator'));
|
||||
$validator->appendMessage(new Message($msg, $attribute, 'MinMaxValidator'));
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user