Install the PHP version in Aptana for> = 5.4. The array syntax with [] instead of array() is relatively new and depending on the analyzer, it will show you a syntax error or not.
Right-click on your project and go to "Properties". Then click on the “PHP Development” menu on the left and select “PHP 5.4.x” (or something similar)
source share