diff --git a/library/Businessprocess/Modification/ProcessChanges.php b/library/Businessprocess/Modification/ProcessChanges.php index 2adcb25..0fb52ae 100644 --- a/library/Businessprocess/Modification/ProcessChanges.php +++ b/library/Businessprocess/Modification/ProcessChanges.php @@ -70,10 +70,10 @@ class ProcessChanges * * @return $this */ - public function addChildrenToNode(Node $node, $children) + public function addChildrenToNode($children, Node $node = null) { $action = new NodeAddChildrenAction($node); - $action->setChildren($node, $children); + $action->setChildren($children); return $this->push($action); }