6666 )
6767)
6868-----
69- <?php class A { readonly readonly $a; }
69+ <?php class C { readonly readonly $a; }
7070-----
7171!!php7
7272Multiple readonly modifiers are not allowed from 1:26 to 1:33
7676 )
7777 flags: 0
7878 name: Identifier(
79- name: A
79+ name: C
8080 )
8181 extends: null
8282 implements: array(
@@ -231,8 +231,29 @@ array(
231231)
232232-----
233233<?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 { }
234254// Type in the partial parse could conceivably be any of 0, 16 or 32
235255-----
256+ !!php5
236257Syntax error, unexpected T_FINAL, expecting T_CLASS from 1:16 to 1:20
237258array(
238259 0: Stmt_Class(
@@ -258,6 +279,7 @@ array(
258279<?php readonly class A { }
259280// Type in the partial parse could conceivably be any of 0, 16 or 32
260281-----
282+ !!php5
261283Syntax error, unexpected T_READONLY from 1:7 to 1:14
262284array(
263285 0: Stmt_Class(
@@ -280,7 +302,7 @@ array(
280302 )
281303)
282304-----
283- <?php class A { abstract $a ; }
305+ <?php class B { abstract $b ; }
284306-----
285307Properties cannot be declared abstract from 1:17 to 1:24
286308array(
@@ -289,7 +311,7 @@ array(
289311 )
290312 flags: 0
291313 name: Identifier(
292- name: A
314+ name: B
293315 )
294316 extends: null
295317 implements: array(
@@ -303,7 +325,7 @@ array(
303325 props: array(
304326 0: Stmt_PropertyProperty(
305327 name: VarLikeIdentifier(
306- name: a
328+ name: b
307329 )
308330 default: null
309331 )
0 commit comments