Aptana将有效括号标记为PHP语法错误 [英] Aptana flagging valid brackets as PHP syntax error

查看:102
本文介绍了Aptana将有效括号标记为PHP语法错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Aptana的新手,所以并没有对所有行为进行排序.我有可以使用的PHP代码,但是Aptana在两个括号中都引发了语法错误:

I'm new to Aptana, so don't quite have all of the behaviors sorted. I have PHP code that works, but Aptana is throwing syntax errors on both of the brackets:

public function addRecord($data)
{
    $request = [
        'action' => 'addrecord',
        'data' => json_encode($data)
    ];

    return $this->requestJson($request, 'POST');
}

我在这里没看到什么?

推荐答案

Aptana现在确实支持PHP 5.4,而最初的帖子发布时则不支持.

It seems that Aptana does support PHP 5.4 now, whereas it didn't when the original post was made.

Project->Properties->PHP Development-> Select PHP 5.4.x

这篇关于Aptana将有效括号标记为PHP语法错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆