Skip to content

Commit af62cef

Browse files
committed
Remove the parent when checking from null value nodes as well if needed.
1 parent 0396b41 commit af62cef

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Modifier/RemoveNullNode.php

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public function modify(NodeInterface $tree): NodeInterface
3131
}
3232

3333
$parent->remove($item);
34+
$this->modify($parent);
3435
}
3536

3637
return $tree;

0 commit comments

Comments
 (0)