From e5b9efbfb466e3b476afe6823a82c1087651316e Mon Sep 17 00:00:00 2001 From: Oskar Stark Date: Thu, 10 Oct 2024 10:44:22 +0200 Subject: [PATCH] Use type hint --- controller/forwarding.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/forwarding.rst b/controller/forwarding.rst index a0e0648517a..8d8be859da5 100644 --- a/controller/forwarding.rst +++ b/controller/forwarding.rst @@ -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,