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

查看:26
本文介绍了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');
}

我在这里没有看到什么?

What am I not seeing here?

推荐答案

现在看来 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天全站免登陆