开发者

Zend Studio 7.2 showing error on namespaces?

I have these namespaces defined in my bootstrap file:

use Doctrine\Common\ClassLoader,
    Doctrine\Common\Annotations\AnnotationReader,
    Doctrine\ODM\MongoDB\DocumentManager,
    Doctrine\ODM\MongoDB\Mongo,
    Doctrine\ODM\MongoDB\Configuration,
    Doctrine\ODM\MongoDB\Mapping\Driver\AnnotationDriver;

But there is an error on the first line above:

synt开发者_StackOverflow中文版ax error, unexpected 'Doctrine', expecting '('

7.X is supposed to have namespace support, but it's showing errors ALL throughout my project. Any idea why?


Just a thought, but do you definitely have your project configured for PHP 5.3 support? Our installation here defaults to PHP 5.2 for new projects.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜