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

 

posted @ 2022-05-05 07:29  波罗斯の程序日记  阅读(191)  评论(0编辑  收藏  举报