编程语言
首页 > 编程语言> > ThinkPHP6安装注解路由报错解决办法

ThinkPHP6安装注解路由报错解决办法

作者:互联网

安装失败 syntax error, unexpected 'array' (T_ARRAY), expecting function (T_FUNCTION) or const (T_CONST #19

文档上写这个 composer require topthink/think-annotation

但是安装会报错

降低版本即可安装成功

composer require topthink/think-annotation ^1.0

 

标签:require,ThinkPHP6,报错,composer,topthink,安装,annotation,路由
来源: https://www.cnblogs.com/wordblog/p/16223239.html