1 parent a23dbb4 commit 759bd12Copy full SHA for 759bd12
1 file changed
Iterator/NestIterator.php
@@ -72,7 +72,7 @@ public function hasChildren(): bool
72
$children = $property($this->current());
73
74
if (is_array($children)) {
75
- return !empty($children);
+ return $children !== [];
76
}
77
78
return $children instanceof Traversable;
0 commit comments