mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-04 18:28:25 +01:00
0731b47655
With error recovery this is fluid. Using .test for everything.
30 lines
674 B
Plaintext
30 lines
674 B
Plaintext
Invalid namespace names
|
|
-----
|
|
<?php namespace self;
|
|
-----
|
|
Cannot use 'self' as namespace name from 1:17 to 1:20
|
|
-----
|
|
<?php namespace PARENT;
|
|
-----
|
|
Cannot use 'PARENT' as namespace name from 1:17 to 1:22
|
|
-----
|
|
<?php namespace static;
|
|
-----
|
|
Syntax error, unexpected T_STATIC, expecting T_STRING or T_NS_SEPARATOR or '{' from 1:17 to 1:22
|
|
array(
|
|
)
|
|
-----
|
|
<?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:16 to 1:21
|
|
array(
|
|
)
|