Skip to content

Commit b3ea56c

Browse files
[Cache] Add return hint
Add Response return hint
1 parent 842f719 commit b3ea56c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http_cache.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ The *easiest* way to cache a response is by caching it for a specific amount of
215215
use Symfony\Component\HttpFoundation\Response;
216216
// ...
217217

218-
public function index()
218+
public function index(): Response
219219
{
220220
// somehow create a Response object, like by rendering a template
221221
$response = $this->render('blog/index.html.twig', []);

0 commit comments

Comments
 (0)