Skip to content

Commit

Permalink
setParent() returns the old one.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hywan committed Nov 8, 2013
1 parent 9db5614 commit 067d223
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Llk/TreeNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public function setParent ( TreeNode $parent ) {
$old = $this->_parent;
$this->_parent = $parent;

return $parent;
return $old;
}

/**
Expand Down

0 comments on commit 067d223

Please sign in to comment.