I am getting this code error on a PHP
class Utils
{
static public $actionPath = 'install/core/actions';
static public function checkActionExists($actionName)
{
return in_array($actionName, [
'applySett',
'buildDatabase',
'checkPermission',
'createUser',
'errors',
'finish',
'main',
'setEmailSett',
'setPreferences',
'settingsTest',
'setupConfirmation',
'step1',
'step2',
'step3',
'step4',
'step5'
]);
return false;
}
}
According to Dreamweaver the error is on the first line of this snippet. The error I am getting trying to run the code is as follow:
Parse error: syntax error, unexpected '[' in /home//test/install/core/Utils.php on line 36
I am trying to install an open source software ESPO CRM