on my localhost [PHP Version 5.5.9-1ubuntu4.5] this code is working:
array($userName => ['score' => $score]);
and also this code is working:
$this->Auth->user()['id']
but on production server [PHP Version 5.3.3-7+squeeze23] in both cases I've got an error:
Error: Fatal Error (4): syntax error, unexpected '['
what's going on? how can I fix it in a simplest way? (cause changing all arrays in project is highly impracticable and I'm even not sure how to manage the second case with Auth...)