Skip to content

php8.1+ 报 Deprecated #437

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

Open
nfhh opened this issue Mar 31, 2025 · 3 comments
Open

php8.1+ 报 Deprecated #437

nfhh opened this issue Mar 31, 2025 · 3 comments

Comments

@nfhh
Copy link

nfhh commented Mar 31, 2025

Deprecated: Qiniu\Config::__construct(): Implicitly marking parameter $z as nullable is deprecated, the explicit nullable type must be used instead in C:\Users\Administrator\Herd\newgtb\vendor\qiniu\php-sdk\src\Qiniu\Config.php on line 44

弃用警告:Qiniu\Config 类的构造函数中,参数 $z 被隐式标记为可空类型(nullable),这是被弃用的做法。你需要明确地使用 ? 来声明其为可空类型。
public function __construct(Region $z = null) {

要改为

public function __construct(?Zone $z = null) {

@YangSen-qn
Copy link

感谢反馈

@nfhh
Copy link
Author

nfhh commented Apr 7, 2025

感谢反馈

什么时候更新下啊?

1 similar comment
@johnshwang
Copy link

感谢反馈

什么时候更新下啊?

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

3 participants