the whole shebang
This commit is contained in:
13
vendor/nikic/php-parser/test/code/parser/stmt/class/staticMethod.test-fail
vendored
Normal file
13
vendor/nikic/php-parser/test/code/parser/stmt/class/staticMethod.test-fail
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
Some special methods cannot be static
|
||||
-----
|
||||
<?php class A { static function __construct() {} }
|
||||
-----
|
||||
"__construct" method cannot be static on line 1
|
||||
-----
|
||||
<?php class A { static function __destruct() {} }
|
||||
-----
|
||||
"__destruct" method cannot be static on line 1
|
||||
-----
|
||||
<?php class A { static function __clone() {} }
|
||||
-----
|
||||
"__clone" method cannot be static on line 1
|
||||
Reference in New Issue
Block a user