开发者

Zend Studio 7.2 showing error on namespaces?

开发者 https://www.devze.com 2023-01-17 23:44 出处:网络
I have these namespaces defined in my bootstrap file: use Doctrine\\Common\\ClassLoader, Doctrine\\Common\\Annotations\\AnnotationReader,

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

精彩评论

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