We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b75ca03 commit 1898809Copy full SHA for 1898809
src/TreeNode.php
@@ -51,7 +51,7 @@ public function __construct(
51
#[\ReturnTypeWillChange]
52
public function jsonSerialize()
53
{
54
- if ($this->children === null) {
+ if ($this->children === null || $this->children === []) {
55
return [
56
'l' => $this->level,
57
'n' => $this->name,
0 commit comments