Skip to content

fix: update Response::getHeader parameter declaration#3

Merged
cclilshy merged 1 commit into
cloudtay:mainfrom
BadJacky:fix/response-header-parameter-declaration
Apr 9, 2025
Merged

fix: update Response::getHeader parameter declaration#3
cclilshy merged 1 commit into
cloudtay:mainfrom
BadJacky:fix/response-header-parameter-declaration

Conversation

@BadJacky

@BadJacky BadJacky commented Apr 8, 2025

Copy link
Copy Markdown
Contributor

Update the parameter declaration in Response::getHeader method to use string|null type instead of ?string with default value to avoid PHP 8.1+ deprecation warning while maintaining backward compatibility.

This resolves the warning:
"Implicitly marking parameter $name as nullable is deprecated, the explicit nullable type must be used instead"

Update the parameter declaration in Response::getHeader method to use
string|null type instead of ?string with default value to avoid PHP 8.1+
deprecation warning while maintaining backward compatibility.

This resolves the warning:
"Implicitly marking parameter $name as nullable is deprecated, the explicit
nullable type must be used instead"
@BadJacky

BadJacky commented Apr 8, 2025

Copy link
Copy Markdown
Contributor Author

@cclilshy review please

@BadJacky

BadJacky commented Apr 9, 2025

Copy link
Copy Markdown
Contributor Author

@cclilshy r p

@cclilshy cclilshy merged commit 7f59c9e into cloudtay:main Apr 9, 2025
@cclilshy

cclilshy commented Apr 9, 2025

Copy link
Copy Markdown
Member

非常感谢,项目有你更精彩🎉

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

Successfully merging this pull request may close these issues.

2 participants