Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb535d86

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 parentf3c3d79 commitb535d86

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)

[8]ページ先頭

©2009-2025 Movatter.jp