Skip to content

Commit

Permalink
Don't use deprecated functions in Callback.rst
Browse files Browse the repository at this point in the history
The addViolationAt function is marked as deprecated and should be replaced by buildViolation according to the Symfony update guides.
  • Loading branch information
Rootie authored and weaverryan committed Oct 2, 2014
1 parent f4380ed commit 5dfe499
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions reference/constraints/Callback.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,7 @@ those errors should be attributed::
if (in_array($this->getFirstName(), $fakeNames)) {
$context->buildViolation('This name sounds totally fake!')
->atPath('firstName')
->addViolation()
;
->addViolation();
}
}
}
Expand Down

0 comments on commit 5dfe499

Please sign in to comment.