Skip to content

Commit 9e04da2

Browse files
mohamedGasmiixabbuh
authored andcommitted
[Cache] Add return hint
1 parent 25428e8 commit 9e04da2

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
@@ -103,7 +103,7 @@ independently of the rest of the page::
103103
// ...
104104
class DefaultController extends AbstractController
105105
{
106-
public function about()
106+
public function about(): Response
107107
{
108108
$response = $this->render('static/about.html.twig');
109109
$response->setPublic();
@@ -169,7 +169,7 @@ of the master page::
169169
// ...
170170
class NewsController extends AbstractController
171171
{
172-
public function latest($maxPerPage)
172+
public function latest(int $maxPerPage): Response
173173
{
174174
// ...
175175
$response->setPublic();

0 commit comments

Comments
 (0)