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

php8.4. 报错 Request::asMultipart() Request::attach() 参数 =null 被弃用 #17

Open
21307369 opened this issue Dec 13, 2024 · 0 comments

Comments

@21307369
Copy link

21307369 commented Dec 13, 2024

yzh52521\EasyHttp\Request::asMultipart(): Implicitly marking parameter $filename as nullable is deprecated, the explicit nullable type must be used

yzh52521\EasyHttp\Request::asMultipart():隐式将参数 $filename 标记为可空已弃用,必须使用显式可空类型。

改成

public function asMultipart(string $name, string $contents, ?string $filename = null, array $headers = [])

还有
yzh52521\EasyHttp\Request::attach(): Implicitly marking parameter $filename as nullable is deprecated, the explicit nullable type must be used instead

改成

public function attach(string $name, string $contents,? string $filename = null, array $headers = [])
@21307369 21307369 changed the title php8.4. yzh52521\EasyHttp\Request::asMultipart() php8.4. 报错 Request::asMultipart() Request::attach() 参数 =null 被弃用 Dec 13, 2024
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