I'm using Aptana Studio 3 and I have the following problem:
When I type:
$return = ['success' => (validation_errors() == null) ? true : false];
Aptana marks this line as a syntax error. Any ideas on how to fix this?
Set your PHP version in Aptana to >=5.4. The array syntax with [] instead of array()
is relatively new and depending on the parser it will show you a syntax error or not.
Right click on your project and go to Properties. Then click the "PHP Development" menu on the left, and select "PHP 5.4.x" (or something similar)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With