mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
186b0f3770
We recently added support for "use \Foo\{Bar}". This commit drops support for the reverse "use Foo\{\Bar}". Those two got mixed up in the initial implementation.
16 lines
301 B
PHP
16 lines
301 B
PHP
--TEST--
|
|
Type group use declarations should not allow override on inner itens
|
|
--FILE--
|
|
<?php
|
|
|
|
// should throw syntax errors
|
|
|
|
use const Foo\Bar\{
|
|
A,
|
|
const B,
|
|
function C
|
|
};
|
|
|
|
--EXPECTF--
|
|
Parse error: syntax error, unexpected 'const' (T_CONST), expecting identifier (T_STRING) in %s on line 7
|