2011-11-27 12:53:48 +01:00
|
|
|
Some special methods cannot be static
|
|
|
|
-----
|
|
|
|
<?php class A { static function __construct() {} }
|
|
|
|
-----
|
2016-10-09 00:59:44 +02:00
|
|
|
Constructor __construct() cannot be static from 1:17 to 1:22
|
|
|
|
array(
|
|
|
|
0: Stmt_Class(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: 0
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: A
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
extends: null
|
|
|
|
implements: array(
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
0: Stmt_ClassMethod(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: MODIFIER_STATIC (8)
|
|
|
|
byRef: false
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: __construct
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
params: array(
|
|
|
|
)
|
|
|
|
returnType: null
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A { static function __destruct() {} }
|
|
|
|
-----
|
2016-10-09 00:59:44 +02:00
|
|
|
Destructor __destruct() cannot be static from 1:17 to 1:22
|
|
|
|
array(
|
|
|
|
0: Stmt_Class(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: 0
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: A
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
extends: null
|
|
|
|
implements: array(
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
0: Stmt_ClassMethod(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: MODIFIER_STATIC (8)
|
|
|
|
byRef: false
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: __destruct
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
params: array(
|
|
|
|
)
|
|
|
|
returnType: null
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A { static function __clone() {} }
|
|
|
|
-----
|
2016-10-09 00:59:44 +02:00
|
|
|
Clone method __clone() cannot be static from 1:17 to 1:22
|
|
|
|
array(
|
|
|
|
0: Stmt_Class(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: 0
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: A
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
extends: null
|
|
|
|
implements: array(
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
0: Stmt_ClassMethod(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: MODIFIER_STATIC (8)
|
|
|
|
byRef: false
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: __clone
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
params: array(
|
|
|
|
)
|
|
|
|
returnType: null
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2014-01-23 13:33:02 +01:00
|
|
|
-----
|
|
|
|
<?php class A { static function __CONSTRUCT() {} }
|
|
|
|
-----
|
2016-10-09 00:59:44 +02:00
|
|
|
Constructor __CONSTRUCT() cannot be static from 1:17 to 1:22
|
|
|
|
array(
|
|
|
|
0: Stmt_Class(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: 0
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: A
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
extends: null
|
|
|
|
implements: array(
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
0: Stmt_ClassMethod(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: MODIFIER_STATIC (8)
|
|
|
|
byRef: false
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: __CONSTRUCT
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
params: array(
|
|
|
|
)
|
|
|
|
returnType: null
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2014-01-23 13:33:02 +01:00
|
|
|
-----
|
|
|
|
<?php class A { static function __Destruct() {} }
|
|
|
|
-----
|
2016-10-09 00:59:44 +02:00
|
|
|
Destructor __Destruct() cannot be static from 1:17 to 1:22
|
|
|
|
array(
|
|
|
|
0: Stmt_Class(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: 0
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: A
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
extends: null
|
|
|
|
implements: array(
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
0: Stmt_ClassMethod(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: MODIFIER_STATIC (8)
|
|
|
|
byRef: false
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: __Destruct
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
params: array(
|
|
|
|
)
|
|
|
|
returnType: null
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2014-01-23 13:33:02 +01:00
|
|
|
-----
|
|
|
|
<?php class A { static function __cLoNe() {} }
|
|
|
|
-----
|
2016-10-09 00:59:44 +02:00
|
|
|
Clone method __cLoNe() cannot be static from 1:17 to 1:22
|
|
|
|
array(
|
|
|
|
0: Stmt_Class(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: 0
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: A
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
extends: null
|
|
|
|
implements: array(
|
|
|
|
)
|
|
|
|
stmts: array(
|
|
|
|
0: Stmt_ClassMethod(
|
2020-09-13 21:01:17 +02:00
|
|
|
attrGroups: array(
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
flags: MODIFIER_STATIC (8)
|
|
|
|
byRef: false
|
2017-04-28 19:09:39 +02:00
|
|
|
name: Identifier(
|
|
|
|
name: __cLoNe
|
|
|
|
)
|
2016-10-09 00:59:44 +02:00
|
|
|
params: array(
|
|
|
|
)
|
|
|
|
returnType: null
|
|
|
|
stmts: array(
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|