Skip to content

Commit 1b4086b

Browse files
committed
[#2164] Removing one more reference to deprecated addViolationAtSubPath
1 parent 1bc10c1 commit 1b4086b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/validation/custom_constraint.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ With this, the validator ``validate()`` method gets an object as its first argum
221221
public function validate($protocol, Constraint $constraint)
222222
{
223223
if ($protocol->getFoo() != $protocol->getBar()) {
224-
$this->context->addViolationAtSubPath('foo', $constraint->message, array(), null);
224+
$this->context->addViolationAt('foo', $constraint->message, array(), null);
225225
}
226226
}
227227
}

0 commit comments

Comments
 (0)