diff --git a/reference/constraints/Callback.rst b/reference/constraints/Callback.rst index 2c5d0091f60..ef82a323f0a 100644 --- a/reference/constraints/Callback.rst +++ b/reference/constraints/Callback.rst @@ -105,7 +105,7 @@ those errors should be attributed:: // check if the name is actually a fake name if (in_array($this->getFirstName(), $fakeNames)) { - $context->addViolationAtSubPath('firstname', 'This name sounds totally fake!', array(), null); + $context->addViolationAt('firstname', 'This name sounds totally fake!', array(), null); } } }