Skip to content

Commit e5b9efb

Browse files
authored
Use type hint
1 parent ae79b24 commit e5b9efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controller/forwarding.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ and calls the defined controller. The ``forward()`` method returns the
1111
:class:`Symfony\\Component\\HttpFoundation\\Response` object that is returned
1212
from *that* controller::
1313

14-
public function index($name): Response
14+
public function index(string $name): Response
1515
{
1616
$response = $this->forward('App\Controller\OtherController::fancy', [
1717
'name' => $name,

0 commit comments

Comments
 (0)