diff --git a/Classes/Middleware/GenerateMiddleware.php b/Classes/Middleware/GenerateMiddleware.php index 269479cdf09..9a48bce7591 100644 --- a/Classes/Middleware/GenerateMiddleware.php +++ b/Classes/Middleware/GenerateMiddleware.php @@ -95,6 +95,7 @@ protected function calculateLifetime(RequestInterface $request, ResponseInterfac /** @var CacheDataCollector $frontendCacheCollector */ /* @phpstan-ignore-next-line */ $frontendCacheCollector = $request->getAttribute('frontend.cache.collector'); + /* @phpstan-ignore-next-line */ return $frontendCacheCollector->resolveLifetime(); }