diff --git a/UPGRADE-2.1.md b/UPGRADE-2.1.md index 6071be1911..a73fdd9bee 100644 --- a/UPGRADE-2.1.md +++ b/UPGRADE-2.1.md @@ -251,34 +251,6 @@ } } ``` -* The method `setPropertyPath()` in the ExecutionContext class - was removed. - - You should use the `addViolationAtSubPath()` method on the - `ExecutionContext` object instead. - - Before: - - ``` - public function isPropertyValid(ExecutionContext $context) - { - // ... - $propertyPath = $context->getPropertyPath() . '.property'; - $context->setPropertyPath($propertyPath); - $context->addViolation('Error Message', array(), null); - } - ``` - - After: - - ``` - public function isPropertyValid(ExecutionContext $context) - { - // ... - $context->addViolationAtSubPath('property', 'Error Message', array(), null); - - } - ``` * The method `setPropertyPath()` in the ExecutionContext class was removed.