diff --git a/Classes/Aspect/ContentCacheSegmentAspect.php b/Classes/Aspect/ContentCacheSegmentAspect.php index 34b3e55..c3c0616 100644 --- a/Classes/Aspect/ContentCacheSegmentAspect.php +++ b/Classes/Aspect/ContentCacheSegmentAspect.php @@ -88,8 +88,10 @@ public function wrapCachedSegment(JoinPointInterface $joinPoint): string /** * @Flow\Around("method(Neos\Fusion\Core\Cache\RuntimeContentCache->evaluateUncached()) && t3n\Neos\Debug\Aspect\ContentCacheSegmentAspect->debuggingActive") + * + * @return mixed the result of uncached segments might not be of type string, so we cannot define the return type */ - public function wrapEvaluateUncached(JoinPointInterface $joinPoint): string + public function wrapEvaluateUncached(JoinPointInterface $joinPoint) { $start = microtime(true); $segment = $joinPoint->getAdviceChain()->proceed($joinPoint); @@ -170,8 +172,10 @@ public function interceptFusionObject(JoinPointInterface $joinPoint): void /** * @param mixed $segment This is mixed as the RuntimeContentCache might also return none string values * @param mixed[] $info + * + * @return mixed the cached data might not be of type string, so we cannot define the return type */ - protected function renderCacheInfoIntoSegment($segment, array $info): string + protected function renderCacheInfoIntoSegment($segment, array $info) { $injectPosition = 2; $info = array_slice($info, 0, $injectPosition, true)