thinkcmf 报 Parse error: syntax error, unexpected 'class' (T_CLASS)

运行thinkcmf 报:Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in ......\thinkcmf\vendor\thinkphp\base.php on line 33

原因:服务器php版本低了

image.png

解决:切换版本到php-5.6.27-nts 及以上就可以了

你可能感兴趣的:(thinkcmf 报 Parse error: syntax error, unexpected 'class' (T_CLASS))