Skip to content

Commit

Permalink
Fix: Compare with empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Jan 28, 2023
1 parent faa73f4 commit 747346b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Node/NodeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ public function isChild(): bool

public function isLeaf(): bool
{
return 0 === \count($this->children);
return [] === $this->children;
}

public function root(): static
Expand Down

0 comments on commit 747346b

Please sign in to comment.