src/Language/AST/NodeList.php
public function merge($list)
    {
        if ($list instanceof self) {
            $list = $list->nodes;
        }

        return new NodeList(array_merge($this->nodes, $list));
    }
public function merge($list)
    {
        if ($list instanceof self) {
            $list = $list->nodes;
        }

        return new NodeList(array_merge($this->nodes, $list));
    }
public function merge ( $ list ) { if ( $ list instanceof self ) { $ list = $ list -> nodes ; } return new NodeList ( array_merge ( $ this -> nodes , $ list ) ) ; }
@param NodeList|Node[] $list

@return NodeList
@param NodeList|Node [] $list