From b3ea56cfc3466bae019462c7117c90e78d9fac59 Mon Sep 17 00:00:00 2001 From: mohamed gasmi Date: Tue, 16 Aug 2022 21:44:25 +0200 Subject: [PATCH] [Cache] Add return hint Add Response return hint --- http_cache.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_cache.rst b/http_cache.rst index 458839c371e..5dbe30c7f8f 100644 --- a/http_cache.rst +++ b/http_cache.rst @@ -215,7 +215,7 @@ The *easiest* way to cache a response is by caching it for a specific amount of use Symfony\Component\HttpFoundation\Response; // ... - public function index() + public function index(): Response { // somehow create a Response object, like by rendering a template $response = $this->render('blog/index.html.twig', []);