mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00

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.
8 lines
228 B
PHP
8 lines
228 B
PHP
--TEST--
|
|
Unmixed group use declarations mustn't begin with a comma
|
|
--FILE--
|
|
<?php
|
|
use function Baz\{,Foo};
|
|
?>
|
|
--EXPECTF--
|
|
Parse error: syntax error, unexpected token ",", expecting identifier or namespaced name in %s on line %d
|