2011-11-27 12:53:48 +01:00
|
|
|
Invalid namespace names
|
|
|
|
-----
|
|
|
|
<?php namespace self;
|
|
|
|
-----
|
2015-04-18 13:20:39 +02:00
|
|
|
Cannot use 'self' as namespace name from 1:16 to 1:19
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php namespace parent;
|
|
|
|
-----
|
2015-04-18 13:20:39 +02:00
|
|
|
Cannot use 'parent' as namespace name from 1:16 to 1:21
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php namespace static;
|
|
|
|
-----
|
2015-04-18 13:05:40 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NS_SEPARATOR or '{' from 1:16 to 1:21
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php use A as self;
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use A as self because 'self' is a special class name on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php use B as parent;
|
|
|
|
-----
|
2014-01-23 13:33:02 +01:00
|
|
|
Cannot use B as parent because 'parent' is a special class name on line 1
|
2011-11-27 12:53:48 +01:00
|
|
|
-----
|
|
|
|
<?php use C as static;
|
|
|
|
-----
|
2015-04-18 13:05:40 +02:00
|
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING from 1:15 to 1:20
|