From b4a7c71ed2f40145889f1bea1d367cc231f89aca Mon Sep 17 00:00:00 2001 From: Thierry Goettelmann Date: Wed, 27 Nov 2013 14:34:03 +0100 Subject: [PATCH] Update validation.rst Remove the print_r statement to match the expected output. (so the __toString method is called) --- book/validation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/validation.rst b/book/validation.rst index 516599043a1..0607131582f 100644 --- a/book/validation.rst +++ b/book/validation.rst @@ -129,7 +129,7 @@ simple example from inside a controller:: $errors = $validator->validate($author); if (count($errors) > 0) { - return new Response(print_r($errors, true)); + return new Response($errors); } return new Response('The author is valid! Yes!');