php-parser/test/code/parser/stmt/class/modifier.test-fail

38 lines
960 B
Plaintext
Raw Normal View History

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(); }
-----
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-18 21:20:45 +02:00
Syntax error, unexpected T_FINAL, expecting T_CLASS from 1:16 to 1:20
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