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);