Skip to content

Commit e3c2211

Browse files
authored
drop php 8.0 support (#1256)
* bump php to 8.1, apply rector * readonly and typehints * suppress a dodgy readonly property conversion * remove some redundant readonly phpdocs * dont run workflows against 8.0 * more readonly and typehints * phpdoc reformat * typehints * remove php81 polyfill * revert a rector BC breaking change, and disable that rector for ParentBased
1 parent 5798f79 commit e3c2211

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

CloudTraceFormatter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static function deserialize(string $header) : SpanContextInterface
3838
return SpanContext::createFromRemoteParent(
3939
strtolower($matches[1]),
4040
Utils::leftZeroPad(Utils::decToHex($matches[2])),
41-
(int) ($matches[3] == '1')
41+
(int) ($matches[3] === '1')
4242
);
4343
}
4444

CloudTracePropagator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public static function getInstance(): TextMapPropagatorInterface
4646
self::XCLOUD,
4747
];
4848

49-
private function __construct(private bool $oneWay)
49+
private function __construct(private readonly bool $oneWay)
5050
{
5151
}
5252

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818
],
1919
"require": {
20-
"php": "^8.0",
20+
"php": "^8.1",
2121
"open-telemetry/api": "^1.0",
2222
"open-telemetry/context": "^1.0"
2323
},

0 commit comments

Comments
 (0)