Skip to content

Commit

Permalink
Fix: Rename
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 28, 2023
1 parent 1db10d8 commit 805b824
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Node/NodeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ public function getNeighbors(): array
}

$neighbors = $this->parent->getChildren();
$current = $this;
$that = $this;

return \array_values(\array_filter($neighbors, static function (NodeInterface $node) use ($current): bool {
return $node !== $current;
return \array_values(\array_filter($neighbors, static function (NodeInterface $node) use ($that): bool {
return $node !== $that;
}));
}

Expand Down

0 comments on commit 805b824

Please sign in to comment.