Skip to content

Commit 4927f53

Browse files
committed
minor #17189 [Cache] Add return hint (mohamedGasmii)
This PR was submitted for the 5.4 branch but it was squashed and merged into the 4.4 branch instead. Discussion ---------- [Cache] Add return hint <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 9e04da2 [Cache] Add return hint
2 parents 25428e8 + 9e04da2 commit 4927f53

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)