Aptana flagging valid brackets as PHP syntax error

2019-06-27 23:27发布

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?

标签: php aptana
1条回答
淡お忘
2楼-- · 2019-06-27 23:54

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
查看更多
登录 后发表回答