Eclipse PHP(PDT):App :: make(Filesystem :: class)=语法错误意外类

时间:2015-09-17 23:03:42

标签: php eclipse class compiler-errors eclipse-pdt

我非常使用以下声明:

App::make(Filesystem::class)

和Eclipse PHP-Edition(PDT)用红色标出class并将其标记为错误(在左边框上):“Syntax Error, unexcpected class"

我该如何解决这个问题,这可能是有意识的,甚至更好,正确识别为正确的语法。

由于

1 个答案:

答案 0 :(得分:1)

您的项目(或整个工作区),将解释器设置为PHP< 5.5。

对于PHP> = 5.5当前快照的一切正常(将在下周发布)。另请参阅PDT帮助:http://help.eclipse.org/mars/topic/org.eclipse.php.help/html/reference/preferences/php_interpreter.html

如果错误仍然存​​在,您应该报告PDT bugzilla上的错误:https://bugs.eclipse.org/bugs/enter_bug.cgi?product=PDT