Skip to content

Commit 1bc10c1

Browse files
committed
Merge pull request symfony#2164 from sstok/patch-3
Update reference/constraints/Callback.rst (dont use deprecated method)
2 parents fb97719 + 52713f5 commit 1bc10c1

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)