mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-12 01:19:47 +01:00
0731b47655
With error recovery this is fluid. Using .test for everything.
26 lines
714 B
Plaintext
26 lines
714 B
Plaintext
Some special methods cannot be static
|
|
-----
|
|
<?php class A { static function __construct() {} }
|
|
-----
|
|
Constructor __construct() cannot be static on line 1
|
|
-----
|
|
<?php class A { static function __destruct() {} }
|
|
-----
|
|
Destructor __destruct() cannot be static on line 1
|
|
-----
|
|
<?php class A { static function __clone() {} }
|
|
-----
|
|
Clone method __clone() cannot be static on line 1
|
|
-----
|
|
<?php class A { static function __CONSTRUCT() {} }
|
|
-----
|
|
Constructor __CONSTRUCT() cannot be static on line 1
|
|
-----
|
|
<?php class A { static function __Destruct() {} }
|
|
-----
|
|
Destructor __Destruct() cannot be static on line 1
|
|
-----
|
|
<?php class A { static function __cLoNe() {} }
|
|
-----
|
|
Clone method __cLoNe() cannot be static on line 1
|