Skip to content

Commit 29d3c27

Browse files
committed
minor #17186 [Cache] Add return hint (mohamedGasmii)
This PR was merged into the 5.4 branch. Discussion ---------- [Cache] Add return hint Add Response 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 ------- b3ea56c [Cache] Add return hint
2 parents 842f719 + b3ea56c commit 29d3c27

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)