diff --git a/http_cache/cache_invalidation.rst b/http_cache/cache_invalidation.rst index b47b6790989..14b91e8cb1c 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, $catch = false) + protected function invalidate(Request $request, bool $catch = false) { if ('PURGE' !== $request->getMethod()) { return parent::invalidate($request, $catch);