Skip to content

Commit

Permalink
TASK: Insert @var annotation in FusionCachingAspect
Browse files Browse the repository at this point in the history
to help the ide and phpstan
  • Loading branch information
mhsdesign committed Jan 7, 2025
1 parent 08c3eb9 commit d83a6dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Neos.Fusion/Classes/Aspects/FusionCachingAspect.php
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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)) {
Expand Down

0 comments on commit d83a6dc

Please sign in to comment.