php-src/Zend/tests/ns_094.phpt
Nikita Popov 186b0f3770 Don't allow leading \ in group use decl list
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.
2015-08-20 11:47:43 +02:00

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