File tree Expand file tree Collapse file tree 1 file changed +63
-1
lines changed
test/code/formatPreservation Expand file tree Collapse file tree 1 file changed +63
-1
lines changed Original file line number Diff line number Diff line change 111
111
array_splice($stmts, 0, 1, []);
112
112
-----
113
113
<?php
114
- $y;
114
+ $y;
115
+ -----
116
+ <?php
117
+
118
+ try {
119
+
120
+ } catch (\InvalidArgumentException $e) {
121
+
122
+ } catch (\Exception $e) {
123
+
124
+ } catch (\LogicException $e) {
125
+
126
+ } catch (\Throwable $e) {
127
+
128
+ }
129
+ -----
130
+ $catch = $stmts[0]->catches[2];
131
+ unset($stmts[0]->catches[2]);
132
+ $stmts[0]->catches = array_values($stmts[0]->catches);
133
+ array_splice($stmts[0]->catches, 1, 0, [$catch]);
134
+ -----
135
+ <?php
136
+
137
+ try {
138
+
139
+ } catch (\InvalidArgumentException $e) {
140
+
141
+ } catch (\LogicException $e) {
142
+
143
+ } catch (\Exception $e) {
144
+
145
+ } catch (\Throwable $e) {
146
+
147
+ }
148
+ -----
149
+ <?php
150
+
151
+ try {
152
+
153
+ } catch (\InvalidArgumentException $e) {
154
+
155
+ } catch (\Exception $e) {
156
+
157
+ } catch (\LogicException $e) {
158
+
159
+ } catch (\Throwable $e) {
160
+
161
+ }
162
+ -----
163
+ unset($stmts[0]->catches[2]);
164
+ $stmts[0]->catches = array_values($stmts[0]->catches);
165
+ -----
166
+ <?php
167
+
168
+ try {
169
+
170
+ } catch (\InvalidArgumentException $e) {
171
+
172
+ } catch (\Exception $e) {
173
+
174
+ } catch (\Throwable $e) {
175
+
176
+ }
You can’t perform that action at this time.
0 commit comments