diff --git a/cookbook/bundles/best_practices.rst b/cookbook/bundles/best_practices.rst index 30519f52888..01d55fb9b61 100644 --- a/cookbook/bundles/best_practices.rst +++ b/cookbook/bundles/best_practices.rst @@ -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(