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

Skip to content

Commit 7970f76

Browse files
committed
Fix code example
| Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.5 | Fixed tickets |
1 parent 1f343b1 commit 7970f76

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)