php-src/Zend/tests/ns_096.phpt
Nikita Popov 7a3dcc3e33 Treat namespaced names as single token
Namespace names are now lexed as single tokens of type
T_NAME_QUALIFIED, T_NAME_FULLY_QUALIFIED or T_NAME_RELATIVE.

RFC: https://wiki.php.net/rfc/namespaced_names_as_token

Closes GH-5827.
2020-07-22 12:36:05 +02:00

11 lines
274 B
PHP

--TEST--
Group use declaration list should not contain leading separator
--FILE--
<?php
use Foo\Bar\{\Baz};
?>
--EXPECTF--
Parse error: syntax error, unexpected fully qualified name "\Baz", expecting identifier or namespaced name or "function" or "const" in %s on line %d