mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00: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
236 B
PHP
9 lines
236 B
PHP
--TEST--
|
|
Group use declarations mustn't begin with a comma
|
|
--FILE--
|
|
<?php
|
|
use Baz\{,Foo};
|
|
?>
|
|
--EXPECTF--
|
|
Parse error: syntax error, unexpected token ",", expecting identifier or namespaced name or "function" or "const" in %s on line %d
|