diff --git a/book/validation.rst b/book/validation.rst index ac4bacfdbd3..fc343d840fa 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -117,6 +117,8 @@ constraints. If validation fails, a non-empty list of errors (class :class:`Symfony\\Component\\Validator\\ConstraintViolationList`) is returned. Take this simple example from inside a controller: +.. code-block:: php + // ... use Symfony\Component\HttpFoundation\Response; use Acme\BlogBundle\Entity\Author;