66
66
)
67
67
)
68
68
-----
69
- <?php class A { readonly readonly $a; }
69
+ <?php class C { readonly readonly $a; }
70
70
-----
71
71
!!php7
72
72
Multiple readonly modifiers are not allowed from 1:26 to 1:33
76
76
)
77
77
flags: 0
78
78
name: Identifier(
79
- name: A
79
+ name: C
80
80
)
81
81
extends: null
82
82
implements: array(
@@ -231,8 +231,29 @@ array(
231
231
)
232
232
-----
233
233
<?php abstract final class A { }
234
+ -----
235
+ !!php7
236
+ Cannot use the final modifier on an abstract class from 1:16 to 1:20
237
+ array(
238
+ 0: Stmt_Class(
239
+ attrGroups: array(
240
+ )
241
+ flags: MODIFIER_ABSTRACT | MODIFIER_FINAL (48)
242
+ name: Identifier(
243
+ name: A
244
+ )
245
+ extends: null
246
+ implements: array(
247
+ )
248
+ stmts: array(
249
+ )
250
+ )
251
+ )
252
+ -----
253
+ <?php abstract final class A { }
234
254
// Type in the partial parse could conceivably be any of 0, 16 or 32
235
255
-----
256
+ !!php5
236
257
Syntax error, unexpected T_FINAL, expecting T_CLASS from 1:16 to 1:20
237
258
array(
238
259
0: Stmt_Class(
@@ -258,6 +279,7 @@ array(
258
279
<?php readonly class A { }
259
280
// Type in the partial parse could conceivably be any of 0, 16 or 32
260
281
-----
282
+ !!php5
261
283
Syntax error, unexpected T_READONLY from 1:7 to 1:14
262
284
array(
263
285
0: Stmt_Class(
@@ -280,7 +302,7 @@ array(
280
302
)
281
303
)
282
304
-----
283
- <?php class A { abstract $a ; }
305
+ <?php class B { abstract $b ; }
284
306
-----
285
307
Properties cannot be declared abstract from 1:17 to 1:24
286
308
array(
@@ -289,7 +311,7 @@ array(
289
311
)
290
312
flags: 0
291
313
name: Identifier(
292
- name: A
314
+ name: B
293
315
)
294
316
extends: null
295
317
implements: array(
@@ -303,7 +325,7 @@ array(
303
325
props: array(
304
326
0: Stmt_PropertyProperty(
305
327
name: VarLikeIdentifier(
306
- name: a
328
+ name: b
307
329
)
308
330
default: null
309
331
)
0 commit comments