File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ and calls the defined controller. The ``forward()`` method returns the
1414:class: `Symfony\\ Component\\ HttpFoundation\\ Response ` object that is returned
1515from *that * controller::
1616
17- public function index($name)
17+ public function index($name): Response
1818 {
1919 $response = $this->forward('App\Controller\OtherController::fancy', [
2020 'name' => $name,
@@ -29,7 +29,7 @@ from *that* controller::
2929The array passed to the method becomes the arguments for the resulting controller.
3030The target controller method might look something like this::
3131
32- public function fancy($name, $color)
32+ public function fancy(string $name, string $color): Response
3333 {
3434 // ... create and return a Response object
3535 }
You can’t perform that action at this time.
0 commit comments