Commit fcd6402b authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

message not consistent for MinMaxValidator

(cherry picked from commit 867ecd70)
parent aaa6b3b8
...@@ -55,7 +55,7 @@ class MinMaxValidator extends Validator implements ValidatorInterface ...@@ -55,7 +55,7 @@ class MinMaxValidator extends Validator implements ValidatorInterface
$msg = $this->getOption('message'); $msg = $this->getOption('message');
if (is_numeric($value) == false || $value < $min || $value > $max) { 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 false;
} }
return true; return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment