Skip to content

fix: update Response::getHeader parameter declaration#3

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

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

Conversation

@BadJacky
Copy link
Contributor

@BadJacky BadJacky commented Apr 8, 2025

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
Copy link
Contributor Author

BadJacky commented Apr 8, 2025

@cclilshy review please

@BadJacky
Copy link
Contributor Author

BadJacky commented Apr 9, 2025

@cclilshy r p

@cclilshy cclilshy merged commit 7f59c9e into cloudtay:main Apr 9, 2025
8 checks passed
@cclilshy
Copy link
Member

cclilshy commented Apr 9, 2025

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

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

Comments