Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 75e8815

Browse filesBrowse files
dnohaleswebmozart
authored andcommitted
[Validator] Fix constraint violation message parameterization
1 parent 4dbe0e1 commit 75e8815
Copy full SHA for 75e8815

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Validator/Constraints/AbstractComparisonValidator.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function validate($value, Constraint $constraint)
3232

3333
if (!$this->compareValues($value, $constraint->value)) {
3434
$this->context->addViolation($constraint->message, array(
35-
'{{ value }}' => $this->valueToString($constraint->value),
35+
'{{ value }}' => $this->valueToString($value),
3636
'{{ compared_value }}' => $this->valueToString($constraint->value),
3737
'{{ compared_value_type }}' => $this->valueToType($constraint->value)
3838
));

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.