Skip to content

Commit

Permalink
Remove the parent when checking from null value nodes as well if needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Dec 15, 2019
1 parent 0396b41 commit af62cef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Modifier/RemoveNullNode.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public function modify(NodeInterface $tree): NodeInterface
}

$parent->remove($item);
$this->modify($parent);
}

return $tree;
Expand Down

0 comments on commit af62cef

Please sign in to comment.