-
Notifications
You must be signed in to change notification settings - Fork 160
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 PHP 8.4 deprecations #2981
Fix PHP 8.4 deprecations #2981
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2981 +/- ##
============================================
- Coverage 73.88% 1.96% -71.93%
Complexity 2750 2750
============================================
Files 111 111
Lines 10900 10900
============================================
- Hits 8054 214 -7840
- Misses 2846 10686 +7840
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 75 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
785a5dd
to
a3e7f6a
Compare
Hey @JeppeKnockaert, Thanks for the contribution, however we still support 7.0, so that's a bit unfortunate, as this PR breaks that version. I believe the only solution to keep it working on 7.0 and no incurring the deprecations is removing the types for the nullable values altogether. |
3a452b3
to
9a9b4ca
Compare
In order to keep PHP 7.0 compatibility, I removed the implicitely nullable types instead of making them explicitely nullable.
9a9b4ca
to
aa32943
Compare
@bwoebi Thanks for reviewing, I updated the PR to remove the implicitly nullable types instead |
62ba353
to
2aaaa29
Compare
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.
Thank you for the changes.
I've moved the OpenTelemetry part back to nullable types as that code anyway isn't available for PHP 7.0.
That code is not available on PHP 7.0 anyway. Signed-off-by: Bob Weinand <bob.weinand@datadoghq.com>
2aaaa29
to
82c8574
Compare
Hey @JeppeKnockaert 👋 |
Description
This PR removes implicitly nullable parameters because these result in deprecation warnings for PHP 8.4.
https://www.php.net/manual/en/migration84.deprecated.php#migration84.deprecated.core.implicitly-nullable-parameter
Reviewer checklist