From d3b56dfaf03a9151a223b552ad8269935a71be7c Mon Sep 17 00:00:00 2001 From: mohamed gasmi Date: Tue, 16 Aug 2022 21:50:41 +0200 Subject: [PATCH] [Cache] Add return hint Return hint for invalidate added in V6.0 --- http_cache/cache_invalidation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http_cache/cache_invalidation.rst b/http_cache/cache_invalidation.rst index 6a11a1fdc78..b4c883835b1 100644 --- a/http_cache/cache_invalidation.rst +++ b/http_cache/cache_invalidation.rst @@ -60,7 +60,7 @@ to support the ``PURGE`` HTTP method:: class CacheKernel extends HttpCache { - protected function invalidate(Request $request, bool $catch = false) + protected function invalidate(Request $request, bool $catch = false): Response { if ('PURGE' !== $request->getMethod()) { return parent::invalidate($request, $catch);