mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
7a3dcc3e33
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.
9 lines
222 B
PHP
9 lines
222 B
PHP
--TEST--
|
|
Group use declarations mustn't be empty
|
|
--FILE--
|
|
<?php
|
|
use Baz\{};
|
|
?>
|
|
--EXPECTF--
|
|
Parse error: syntax error, unexpected token "}", expecting identifier or namespaced name or "function" or "const" in %s on line %d
|