Skip to content

Commit

Permalink
Use type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored Oct 10, 2024
1 parent ae79b24 commit e5b9efb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/forwarding.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ and calls the defined controller. The ``forward()`` method returns the
:class:`Symfony\\Component\\HttpFoundation\\Response` object that is returned
from *that* controller::

public function index($name): Response
public function index(string $name): Response
{
$response = $this->forward('App\Controller\OtherController::fancy', [
'name' => $name,
Expand Down

0 comments on commit e5b9efb

Please sign in to comment.