Skip to content

Commit f767aa9

Browse files
94noniOskarStark
authored andcommitted
Update forwarding.rst
1 parent 88cf74d commit f767aa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

controller/forwarding.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
1515
from *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::
2929
The array passed to the method becomes the arguments for the resulting controller.
3030
The 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
}

0 commit comments

Comments
 (0)