Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用url() 会出现错误 #41

Open
dxing1202 opened this issue Mar 24, 2023 · 1 comment
Open

使用url() 会出现错误 #41

dxing1202 opened this issue Mar 24, 2023 · 1 comment

Comments

@dxing1202
Copy link

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

@dxing1202
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant