Aptana flagging valid brackets as PHP syntax error

不羁的心 提交于 2019-12-12 12:05:06

问题


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?


回答1:


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


来源:https://stackoverflow.com/questions/14653125/aptana-flagging-valid-brackets-as-php-syntax-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!