Exception: syntax error, unexpected 'case' (T_CASE), expecting function (T_FUNCTION) or const (T_CONST)