From 7970f764e553b582346317032e3d210da1c24e00 Mon Sep 17 00:00:00 2001 From: "Andrew (Andrius) Marcinkevicius" Date: Wed, 14 Jan 2015 09:56:30 +0200 Subject: [PATCH] Fix code example | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 2.5 | Fixed tickets | --- cookbook/bundles/best_practices.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(