Skip to content

Commit f387f11

Browse files
iammichielweaverryan
authored andcommitted
Adding missing return statement.
1 parent 3364cbb commit f387f11

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
@@ -230,7 +230,7 @@ workflow looks like the following from inside a controller::
230230
if ($form->isValid()) {
231231
// the validation passed, do something with the $author object
232232

233-
$this->redirect($this->generateUrl('...'));
233+
return $this->redirect($this->generateUrl('...'));
234234
}
235235
}
236236

0 commit comments

Comments
 (0)