Skip to content

Commit

Permalink
minor #4829 Fix code example (ifdattic)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
wouterj committed Jan 16, 2015
2 parents 952e317 + 7970f76 commit 84839ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbook/bundles/best_practices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -369,8 +369,8 @@ API is being used. The following code, would work for *all* users::
// the 2.5 API
$this->context->buildViolation($constraint->message)
->setParameter('%string%', $value)
->addViolation();
);
->addViolation()
;
} else {
// the 2.4 API
$this->context->addViolation(
Expand Down

0 comments on commit 84839ba

Please sign in to comment.