Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 84839ba

Browse files
committed
minor #4829 Fix code example (ifdattic)
This PR was merged into the 2.5 branch. Discussion ---------- Fix code example | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.5 | Fixed tickets | Commits ------- 7970f76 Fix code example
2 parents 952e317 + 7970f76 commit 84839ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cookbook/bundles/best_practices.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -369,8 +369,8 @@ API is being used. The following code, would work for *all* users::
369369
// the 2.5 API
370370
$this->context->buildViolation($constraint->message)
371371
->setParameter('%string%', $value)
372-
->addViolation();
373-
);
372+
->addViolation()
373+
;
374374
} else {
375375
// the 2.4 API
376376
$this->context->addViolation(

0 commit comments

Comments
 (0)