From d83a6dc54184db6e9bb4bb0cec7332845e135b61 Mon Sep 17 00:00:00 2001 From: mhsdesign <85400359+mhsdesign@users.noreply.github.com> Date: Tue, 7 Jan 2025 10:01:36 +0100 Subject: [PATCH] TASK: Insert @var annotation in `FusionCachingAspect` to help the ide and phpstan --- Neos.Fusion/Classes/Aspects/FusionCachingAspect.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Neos.Fusion/Classes/Aspects/FusionCachingAspect.php b/Neos.Fusion/Classes/Aspects/FusionCachingAspect.php index ed566b44a51..60f4fc76172 100644 --- a/Neos.Fusion/Classes/Aspects/FusionCachingAspect.php +++ b/Neos.Fusion/Classes/Aspects/FusionCachingAspect.php @@ -14,6 +14,7 @@ use Neos\Flow\Annotations as Flow; use Neos\Flow\Aop\JoinPointInterface; use Neos\Cache\Frontend\VariableFrontend; +use Neos\Fusion\View\FusionView; /** * @Flow\Scope("singleton") @@ -34,7 +35,9 @@ class FusionCachingAspect */ public function cacheGetMergedFusionObjectTree(JoinPointInterface $joinPoint) { - $fusionPathPatterns = $joinPoint->getProxy()->getFusionPathPatterns(); + /** @var FusionView $view */ + $view = $joinPoint->getProxy(); + $fusionPathPatterns = $view->getFusionPathPatterns(); $cacheIdentifier = md5(serialize($fusionPathPatterns)); if ($this->fusionCache->has($cacheIdentifier)) {