[Validator] Fix constraint violation message parameterization
This commit is contained in:
parent
4dbe0e1c34
commit
75e8815566
|
@ -32,7 +32,7 @@ abstract class AbstractComparisonValidator extends ConstraintValidator
|
|||
|
||||
if (!$this->compareValues($value, $constraint->value)) {
|
||||
$this->context->addViolation($constraint->message, array(
|
||||
'{{ value }}' => $this->valueToString($constraint->value),
|
||||
'{{ value }}' => $this->valueToString($value),
|
||||
'{{ compared_value }}' => $this->valueToString($constraint->value),
|
||||
'{{ compared_value_type }}' => $this->valueToType($constraint->value)
|
||||
));
|
||||
|
|
Reference in New Issue