在php项目中使用Aptana Studio时出现语法错误


Syntax error when using Aptana Studio with php project

我试图在php与Aptana 3打开一个工作项目,但我不断得到关于[]的错误消息。这是aptana抱怨的代码:

render("../templates/buy_search.php", ["title" => "Buy"] );

报错为[开头,并说语法错误。不知道为什么它给出错误,因为项目工作得很好。

render("../templates/buy_search.php", ["title" => "Buy"] );
应该

render("../templates/buy_search.php", array("title" => "Buy"));

5.4之前的所有PHP版本