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
|
|
|
-----
|
|
|
|
<?php class parent {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01: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 13:05:40 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING from 1:12 to 1:17
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A extends self {}
|
|
|
|
-----
|
2015-04-18 13:20:39 +02:00
|
|
|
Cannot use 'self' as class name as it is reserved from 1:22 to 1:25
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A extends parent {}
|
|
|
|
-----
|
2015-04-18 13:20:39 +02:00
|
|
|
Cannot use 'parent' as class name as it is reserved from 1:22 to 1:27
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A extends static {}
|
|
|
|
-----
|
2015-04-18 13:05:40 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR from 1:22 to 1:27
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A implements self {}
|
|
|
|
-----
|
2015-04-18 13:20:39 +02:00
|
|
|
Cannot use 'self' as interface name as it is reserved from 1:25 to 1:28
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A implements parent {}
|
|
|
|
-----
|
2015-04-18 13:20:39 +02:00
|
|
|
Cannot use 'parent' as interface name as it is reserved from 1:25 to 1:30
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php class A implements static {}
|
|
|
|
-----
|
2015-04-18 13:05:40 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR from 1:25 to 1:30
|
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
|
|
|
-----
|
|
|
|
<?php interface parent {}
|
|
|
|
-----
|
2014-01-23 13:33:02 +01: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 13:05:40 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING from 1:16 to 1:21
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php interface A extends self {}
|
|
|
|
-----
|
2015-04-18 13:20:39 +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
|
|
|
-----
|
|
|
|
<?php interface A extends parent {}
|
|
|
|
-----
|
2015-04-18 13:20:39 +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 interface A extends static {}
|
|
|
|
-----
|
2015-04-18 13:05:40 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NAMESPACE or T_NS_SEPARATOR from 1:26 to 1:31
|