mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-03 18:07:58 +01:00
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
|