Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in


​Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in


 

This error is happening due the lower version of PHP configured in the server. The problem can be resolved by upgrading the PHP version to 7 or later.

 

Leave a Reply

Your email address will not be published. Required fields are marked *