-
Notifications
You must be signed in to change notification settings - Fork 54
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
Fix implicit nullable type to avoid PHP 8.4 warnings #247
Conversation
Can we add PHP 8.4 to the CI, too? |
done 🤓 |
Fixes similar to php-http/httplug#176 are needed. |
added the "emulate php 8.3" part, but not sure which tweak is needed to fix phpcs. Which by the way should probably be a separate PR, as it does not relate to the changes in this PR |
The tweak is needed to get it to pass, because the symfony ruleset has changed and the php-cs-fixer version is not pinned. |
i updated the cs fixer and apply the fixes in #248. that includes the can you please rebase on the 2.x branch? that should make the cs fixer green. |
✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot!
amazing. thank you so much for being so responsive 😄 Any chance we could also cut a new release with this change? 🤓 |
thanks for contributing. i tagged the release: https://github.com/php-http/client-common/releases/tag/2.7.2 |
What's in this PR?
This PR makes the implicit nullable type explicit. Using implicit nullable types has been deprecated, and will emit deprecation warnings in PHP 8.4
Why?
To avoid getting deprecation warnings in PHP 8.4
Checklist