Unable to access site due to syntax error in line 207 in elgg/engine/classes/Elgg/Di/ServiceProvider.php

I have installed Elgg 1.12 in my GoDaddy hosting. The site was working fine until yesterday. Now, whenever I try to access the site, it is showing server error 500. 

After going to the error log file, I see the following error message.

 

[28-Dec-2015 16:44:57 UTC] PHP Parse error:  syntax error, unexpected '[' in /public_html/elgg/engine/classes/Elgg/Di/ServiceProvider.php on line 207

However, line 207 in the ServiceProvider.php file is correct.

$params = $c->config->get('cookies')['session'];

I am not able to find out any solution for the same. Request you to please help me in resolving the same