Skip to content

Commit 5dfe499

Browse files
Rootieweaverryan
authored andcommitted
Don't use deprecated functions in Callback.rst
The addViolationAt function is marked as deprecated and should be replaced by buildViolation according to the Symfony update guides.
1 parent f4380ed commit 5dfe499

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

reference/constraints/Callback.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ those errors should be attributed::
116116
if (in_array($this->getFirstName(), $fakeNames)) {
117117
$context->buildViolation('This name sounds totally fake!')
118118
->atPath('firstName')
119-
->addViolation()
120-
;
119+
->addViolation();
121120
}
122121
}
123122
}

0 commit comments

Comments
 (0)