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?
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)
© 2022 - 2024 — McMap. All rights reserved.