Skip to content

Commit 52713f5

Browse files
committed
Update reference/constraints/Callback.rst
addViolationAtSubPath() is deprecated since version 2.2 and will be removed in 2.3. Use addViolationAt() instead.
1 parent ddc8747 commit 52713f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/constraints/Callback.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ those errors should be attributed::
105105
106106
// check if the name is actually a fake name
107107
if (in_array($this->getFirstName(), $fakeNames)) {
108-
$context->addViolationAtSubPath('firstname', 'This name sounds totally fake!', array(), null);
108+
$context->addViolationAt('firstname', 'This name sounds totally fake!', array(), null);
109109
}
110110
}
111111
}

0 commit comments

Comments
 (0)