mirror of
https://github.com/phabelio/PHP-Parser.git
synced 2024-12-12 09:09:41 +01:00
26 lines
640 B
Plaintext
26 lines
640 B
Plaintext
Invalid namespace names
|
|
-----
|
|
<?php namespace self;
|
|
-----
|
|
Cannot use 'self' as namespace name on line 1
|
|
-----
|
|
<?php namespace parent;
|
|
-----
|
|
Cannot use 'parent' as namespace name on line 1
|
|
-----
|
|
<?php namespace static;
|
|
-----
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NS_SEPARATOR or '{' from 1:16 to 1:21
|
|
-----
|
|
<?php use A as self;
|
|
-----
|
|
Cannot use A as self because 'self' is a special class name on line 1
|
|
-----
|
|
<?php use B as parent;
|
|
-----
|
|
Cannot use B as parent because 'parent' is a special class name on line 1
|
|
-----
|
|
<?php use C as static;
|
|
-----
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING from 1:15 to 1:20
|