top-think / think-multi-app

thinkphp6 multi app support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

使用url() 会出现错误

dxing1202 opened this issue · comments

使用助手函数后出现 Declaration of think\app\Url::build() must be compatible with think\route\Url::build(): string 报错

使用的是thinkphp8.0.x-dev php8.1
使用多应用时
修改 vendor/topthink/think-multi-app/src/Url.php 71行
public function build() 改成 public function build(): string 就行了