-
Notifications
You must be signed in to change notification settings - Fork 187
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
Drop PHP 7.4 support #1244
Drop PHP 7.4 support #1244
Conversation
update composer.json minimums, and run rector over the code to update what it can. changed some static analysis config to fix some rector-induced failures.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1244 +/- ##
============================================
+ Coverage 83.08% 84.62% +1.53%
+ Complexity 2274 2136 -138
============================================
Files 285 284 -1
Lines 6456 6054 -402
============================================
- Hits 5364 5123 -241
+ Misses 1092 931 -161
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 1 file with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
submitted a PR upstream to fix phan stubs
The |
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.
I suppose symfony/polyfill-php80
dependency can also be removed now?
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.
Some more methods where union types can be added:
SpanBuilderInterface::setParent()
and::setAttribute()
MeterInterface
$advisory
parameterObserverInterface::observe()
LogRecord::setAttribute()
We can use WeakMap
directly now and can remove:
OpenTelemetry\API\Instrumentation\CachedInstrumentation::createWeakMap()
OpenTelemetry\SDK\Common\Util\WeakMap
src/API/Baggage/Entry.php
Outdated
$value, | ||
MetadataInterface $metadata | ||
private mixed $value, | ||
private MetadataInterface $metadata |
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.
private MetadataInterface $metadata | |
private MetadataInterface $metadata, |
Should add trailing comma to changed constructors to reduce diff if we add more parameters.
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.
added a php-cs-fixer rule to apply this to all multiline function declarations
upgrade php-cs-fixer, and apply a new rule for multiline comments
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.
Nice 🧹 💪
@param
phpdocTo do:
TypeError: WeakMap key must be an object
test failures with batch exporter self-diagnosticsFixes: #1243