Skip to content

Commit

Permalink
BUGFIX Use nodeTypes as method named argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
dlubitz committed Dec 15, 2023
1 parent 207a86d commit 2955080
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 2955080

Please sign in to comment.