From 52713f59615eb320a0738fa01b926ac4e0402fd4 Mon Sep 17 00:00:00 2001 From: Sebastiaan Stok Date: Mon, 21 Jan 2013 09:36:51 +0100 Subject: [PATCH] Update reference/constraints/Callback.rst addViolationAtSubPath() is deprecated since version 2.2 and will be removed in 2.3. Use addViolationAt() instead. --- reference/constraints/Callback.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } } }