Skip to content

Commit

Permalink
Merge pull request #4805 from dlubitz/90/bugfix/find-closest-filter
Browse files Browse the repository at this point in the history
BUGFIX Use nodeTypes as method named argument name
  • Loading branch information
dlubitz authored Dec 17, 2023
2 parents e232a85 + 2955080 commit d203650
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Neos.Media.Browser/Classes/Controller/UsageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,14 @@ public function relatedNodesAction(AssetInterface $asset)
continue;
}

$documentNode = $subgraph->findClosestNode($node->nodeAggregateId, FindClosestNodeFilter::create(nodeTypeConstraints: NodeTypeNameFactory::NAME_DOCUMENT));
$documentNode = $subgraph->findClosestNode($node->nodeAggregateId, FindClosestNodeFilter::create(nodeTypes: NodeTypeNameFactory::NAME_DOCUMENT));
// this should actually never happen, too.
if (!$documentNode) {
$inaccessibleRelations[] = $inaccessibleRelation;
continue;
}

$siteNode = $subgraph->findClosestNode($node->nodeAggregateId, FindClosestNodeFilter::create(nodeTypeConstraints: NodeTypeNameFactory::NAME_SITE));
$siteNode = $subgraph->findClosestNode($node->nodeAggregateId, FindClosestNodeFilter::create(nodeTypes: NodeTypeNameFactory::NAME_SITE));
// this should actually never happen, too. :D
if (!$siteNode) {
$inaccessibleRelations[] = $inaccessibleRelation;
Expand Down

0 comments on commit d203650

Please sign in to comment.