2011-11-27 12:53:48 +01:00
|
|
|
Invalid modifier combination
|
|
|
|
-----
|
|
|
|
<?php class A { public public $a; }
|
|
|
|
-----
|
|
|
|
Multiple access type modifiers are not allowed on line 1
|
|
|
|
-----
|
|
|
|
<?php class A { public protected $a; }
|
|
|
|
-----
|
|
|
|
Multiple access type modifiers are not allowed on line 1
|
|
|
|
-----
|
|
|
|
<?php class A { abstract abstract a(); }
|
|
|
|
-----
|
|
|
|
Multiple abstract modifiers are not allowed on line 1
|
|
|
|
-----
|
|
|
|
<?php class A { static static $a; }
|
|
|
|
-----
|
|
|
|
Multiple static modifiers are not allowed on line 1
|
|
|
|
-----
|
|
|
|
<?php class A { final final a() {} }
|
|
|
|
-----
|
|
|
|
Multiple final modifiers are not allowed on line 1
|
|
|
|
-----
|
|
|
|
<?php class A { abstract final a(); }
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use the final modifier on an abstract class member on line 1
|
2012-03-10 23:25:26 +01:00
|
|
|
-----
|
|
|
|
<?php abstract final class A { }
|
2015-04-30 17:37:19 +02:00
|
|
|
// Type in the partial parse could conceivably be any of 0, 16 or 32
|
2012-03-10 23:25:26 +01:00
|
|
|
-----
|
2015-04-18 21:20:45 +02:00
|
|
|
Syntax error, unexpected T_FINAL, expecting T_CLASS from 1:16 to 1:20
|
2015-04-30 17:37:19 +02:00
|
|
|
array(
|
|
|
|
0: Stmt_Class(
|
2016-07-25 13:53:49 +02:00
|
|
|
flags: MODIFIER_FINAL (32)
|
2015-04-30 17:37:19 +02:00
|
|
|
name: A
|
|
|
|
extends: null
|
|
|
|
implements: array(
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
2015-10-02 11:03:12 +02:00
|
|
|
1: Stmt_Nop(
|
|
|
|
comments: array(
|
|
|
|
0: // Type in the partial parse could conceivably be any of 0, 16 or 32
|
|
|
|
)
|
|
|
|
)
|
2015-04-30 17:37:19 +02:00
|
|
|
)
|
2014-11-13 20:25:52 +01:00
|
|
|
-----
|
|
|
|
<?php class A { abstract $a; }
|
|
|
|
-----
|
|
|
|
Properties cannot be declared abstract on line 1
|
|
|
|
-----
|
|
|
|
<?php class A { final $a; }
|
|
|
|
-----
|
|
|
|
Properties cannot be declared final on line 1
|