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 |
agoallikmaa
left a comment
There was a problem hiding this comment.
I suppose symfony/polyfill-php80 dependency can also be removed now?
Nevay
left a comment
There was a problem hiding this comment.
Some more methods where union types can be added:
SpanBuilderInterface::setParent()and::setAttribute()MeterInterface$advisoryparameterObserverInterface::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.
| 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.
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
@paramphpdocTo do:
TypeError: WeakMap key must be an objecttest failures with batch exporter self-diagnosticsFixes: #1243