You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$node = new \Tree\Node\Node('A');
$node->setChildren([$b = new \Tree\Node\Node('B'), $c = new \Tree\Node\Node('C')]);
$c->addChild($d = new \Tree\Node\Node('D'));
var_dump($node->getChildren());
You find a serious bug in the builder... The tree method was not adding the new subtree to the current node's children!
I've fixed it with c9a2710 and tagged a new release (0.2.2).
Hi,
I get your Builder example and tried this :
Result :
I build it manyally
And got :
In other way, got same result :
I expected that "Builder::tree()" create a leaf, and point to it ;
So, i expected B & C will be children of A with the Builder
What i'm doing wrong ?
Thanks
The text was updated successfully, but these errors were encountered: