thinkphp升级后报错Declaration of think\app\Url::build() must be compatible with think\route\Url::build():

原创
2024/11/15 11:56
阅读数 56

将源码中的thinkphp升级后,发现了错误:Declaration of think\app\Url::build() must be compatible with think\route\Url::build(): string

出现这个错误的原因是,你通过命令“composer update topthink/framework”只升级了框架,没有更新多应用扩展模块。

只需要composer运行下面代码更新多应用扩展模块到最新版后即可解决:

composer update topthink/think-multi-app

更新完成后,项目运行正常。

展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
0 收藏
0
分享
返回顶部
顶部