1Removing subnodes by setting them to null
2-----
3<?php
4function
5foo (
6    Bar $foo
7        = null,
8    Foo $bar) : baz
9{}
10
11function
12()
13: int
14{};
15
16class
17Foo
18extends
19Bar
20{
21    public
22    function
23    foo() : ?X {}
24
25    public
26      $prop = 'x'
27    ;
28
29    use T {
30        T
31        ::
32        x
33        as
34        public
35        y
36        ;
37    }
38
39    const
40    int
41    X
42    = 1;
43}
44
45$foo [ $bar ];
46exit ( $bar );
47$foo
48? $bar :
49$baz;
50[ $a => $b
51, $c => & $d];
52
53yield
54$foo
55=>
56$bar;
57yield
58$bar;
59
60break
612
62;
63continue
642
65;
66
67foreach(
68    $array
69as
70    $key
71 =>
72    $value
73) {}
74
75if
76($x)
77{
78}
79
80else {}
81
82return
83$val
84;
85static
86  $x
87  =
88  $y
89;
90
91try {} catch
92  (X $y)
93  {}
94finally
95{}
96-----
97$stmts[0]->returnType = null;
98$stmts[0]->params[0]->default = null;
99$stmts[0]->params[1]->type = null;
100$stmts[1]->expr->returnType = null;
101$stmts[2]->extends = null;
102$stmts[2]->stmts[0]->returnType = null;
103$stmts[2]->stmts[1]->props[0]->default = null;
104$stmts[2]->stmts[2]->adaptations[0]->newName = null;
105$stmts[2]->stmts[3]->type = null;
106$stmts[3]->expr->dim = null;
107$stmts[4]->expr->expr = null;
108$stmts[5]->expr->if = null;
109$stmts[6]->expr->items[1]->key = null;
110$stmts[7]->expr->key = null;
111$stmts[8]->expr->value = null;
112$stmts[9]->num = null;
113$stmts[10]->num = null;
114$stmts[11]->keyVar = null;
115$stmts[12]->else = null;
116$stmts[13]->expr = null;
117$stmts[14]->vars[0]->default = null;
118$stmts[15]->finally = null;
119-----
120<?php
121function
122foo (
123    Bar $foo,
124    $bar)
125{}
126
127function
128()
129{};
130
131class
132Foo
133{
134    public
135    function
136    foo() {}
137
138    public
139      $prop
140    ;
141
142    use T {
143        T
144        ::
145        x
146        as
147        public
148        ;
149    }
150
151    const
152    X
153    = 1;
154}
155
156$foo [];
157exit ();
158$foo
159?:
160$baz;
161[ $a => $b
162, & $d];
163
164yield
165$bar;
166yield;
167
168break;
169continue;
170
171foreach(
172    $array
173as
174    $value
175) {}
176
177if
178($x)
179{
180}
181
182return;
183static
184  $x
185;
186
187try {} catch
188  (X $y)
189  {}
190-----
191<?php
192
193namespace
194A
195    {
196    }
197-----
198$stmts[0]->name = null;
199-----
200<?php
201
202namespace
203    {
204    }
205-----
206<?php
207try
208{
209}
210catch (Exception $e)
211{
212}
213-----
214$stmts[0]->catches[0]->var = null;
215-----
216<?php
217try
218{
219}
220catch (Exception)
221{
222}
223