2011-11-27 12:53:48 +01:00
|
|
|
Invalid class name
|
|
|
|
-----
|
|
|
|
<?php class self {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'self' as class name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
2015-04-26 23:13:08 +02:00
|
|
|
<?php class PARENT {}
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
2015-04-26 23:13:08 +02:00
|
|
|
Cannot use 'PARENT' as class name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class static {}
|
|
|
|
-----
|
2015-04-18 21:20:45 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING from 1:13 to 1:18
|
2015-04-30 17:37:19 +02:00
|
|
|
array(
|
|
|
|
)
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A extends self {}
|
|
|
|
-----
|
2015-04-18 21:20:45 +02:00
|
|
|
Cannot use 'self' as class name as it is reserved from 1:23 to 1:26
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
2015-04-26 23:13:08 +02:00
|
|
|
<?php class A extends PARENT {}
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
2015-04-26 23:13:08 +02:00
|
|
|
Cannot use 'PARENT' as class name as it is reserved from 1:23 to 1:28
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A extends static {}
|
|
|
|
-----
|
2015-04-18 21:20:45 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR from 1:23 to 1:28
|
2015-04-30 17:37:19 +02:00
|
|
|
array(
|
|
|
|
)
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A implements self {}
|
|
|
|
-----
|
2015-04-18 21:20:45 +02:00
|
|
|
Cannot use 'self' as interface name as it is reserved from 1:26 to 1:29
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
2015-04-26 23:13:08 +02:00
|
|
|
<?php class A implements PARENT {}
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
2015-04-26 23:13:08 +02:00
|
|
|
Cannot use 'PARENT' as interface name as it is reserved from 1:26 to 1:31
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A implements static {}
|
|
|
|
-----
|
2015-04-18 21:20:45 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR from 1:26 to 1:31
|
2015-04-30 17:37:19 +02:00
|
|
|
array(
|
|
|
|
)
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php interface self {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use 'self' as class name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
2015-04-26 23:13:08 +02:00
|
|
|
<?php interface PARENT {}
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
2015-04-26 23:13:08 +02:00
|
|
|
Cannot use 'PARENT' as class name as it is reserved on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php interface static {}
|
|
|
|
-----
|
2015-04-18 21:20:45 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING from 1:17 to 1:22
|
2015-04-30 17:37:19 +02:00
|
|
|
array(
|
|
|
|
)
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php interface A extends self {}
|
|
|
|
-----
|
2015-04-18 21:20:45 +02:00
|
|
|
Cannot use 'self' as interface name as it is reserved from 1:27 to 1:30
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
2015-04-26 23:13:08 +02:00
|
|
|
<?php interface A extends PARENT {}
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
2015-04-26 23:13:08 +02:00
|
|
|
Cannot use 'PARENT' as interface name as it is reserved from 1:27 to 1:32
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php interface A extends static {}
|
|
|
|
-----
|
2015-04-18 21:20:45 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR from 1:27 to 1:32
|
2015-04-30 17:37:19 +02:00
|
|
|
array(
|
|
|
|
)
|