Aptana marks valid parentheses as PHP syntax error

I am new to Aptana, so not all behavioral models are sorted. I have PHP code that works, but Aptana throws syntax errors in both brackets:

public function addRecord($data) { $request = [ 'action' => 'addrecord', 'data' => json_encode($data) ]; return $this->requestJson($request, 'POST'); } 

What I do not see here?

+4
source share
1 answer

It seems that Aptana now supports PHP 5.4, whereas it was not when the original post was made.

 Project->Properties->PHP Development-> Select PHP 5.4.x 
+1
source

All Articles