Skip to content

Commit 895781a

Browse files
[Cache] Add return hint
1 parent 29d3c27 commit 895781a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

http_cache/esi.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ independently of the rest of the page::
106106
// ...
107107
class DefaultController extends AbstractController
108108
{
109-
public function about()
109+
public function about(): Response
110110
{
111111
$response = $this->render('static/about.html.twig');
112112
$response->setPublic();
@@ -172,7 +172,7 @@ of the main page::
172172
// ...
173173
class NewsController extends AbstractController
174174
{
175-
public function latest($maxPerPage)
175+
public function latest($maxPerPage): Response
176176
{
177177
// sets to public and adds some expiration
178178
$response->setSharedMaxAge(60);

0 commit comments

Comments
 (0)