Phpdocumentor: Syntax error, unexpected '{' in use grouping (php 7.0 & phpdoc 2.9.0)

Created on 28 Nov 2016  路  3Comments  路  Source: phpDocumentor/phpDocumentor

I get Parse Error: Syntax error, unexpected '{', expecting T_STRING using use grouping feature:

use MyNamespace\Cache\{   <--
    CacheFactory, CacheFactoryContract
};

PHP 7.0.13
phpDocumentor 2.9.0

Most helpful comment

Hm, it is interesting that you insist phpdoc 2.9.0 supports php 7.0 syntax here https://github.com/phpDocumentor/phpDocumentor2/releases/tag/v2.9.0 and php 7.0 has group use declarations that is not supported. 馃槙

All 3 comments

We do not support this notation.

Hm, it is interesting that you insist phpdoc 2.9.0 supports php 7.0 syntax here https://github.com/phpDocumentor/phpDocumentor2/releases/tag/v2.9.0 and php 7.0 has group use declarations that is not supported. 馃槙

It's a feature of the 7.0 language syntax, why would you not support it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juliushaertl picture juliushaertl  路  5Comments

mvriel picture mvriel  路  5Comments

jrfnl picture jrfnl  路  5Comments

machitgarha picture machitgarha  路  4Comments

alissonzampietro picture alissonzampietro  路  6Comments