Skip to content

Commit b535d86

Browse files
ByScriptsweaverryan
authored andcommitted
Update validation.rst
Remove the print_r statement to match the expected output. (so the __toString method is called)
1 parent f3c3d79 commit b535d86

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/validation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ simple example from inside a controller::
129129
$errors = $validator->validate($author);
130130

131131
if (count($errors) > 0) {
132-
return new Response(print_r($errors, true));
132+
return new Response($errors);
133133
}
134134

135135
return new Response('The author is valid! Yes!');

0 commit comments

Comments
 (0)