See https://github.com/nikic/PHP-Parser/issues/507#issuecomment-1014940669 <hr/> Original post: Is it a feature you would be willing to consider? Right now it seems this is possible only in `leaveNode()` and if the parent is an array. Maybe this could be done by introducing a `NullNode` class that can wrap several nodes.