Skip to content

Commit 2e64d82

Browse files
authored
Drop PHP 7.4 support (#1244)
* drop php 7.4 support 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. * adding union typehints * reformat constructor property promotions * updating/removing phpdoc * suppress protobuf extension complaint submitted a PR upstream to fix phan stubs * don't validate packages against 7.4 * remove php8 polyfill * fix readonly comments * apply trailing commas to multiline fixer upgrade php-cs-fixer, and apply a new rule for multiline comments * remove unreachable default match arms for protobuf serializer * adding more union types to vars * use weakmap directly * remove handling for not-supported WeakMap * spacing
1 parent 2bdbbd1 commit 2e64d82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

JaegerBaggagePropagator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function extract($carrier, PropagationGetterInterface $getter = null, Con
7373
$baggageBuilder = Baggage::getBuilder();
7474

7575
foreach ($baggageKeys as $key) {
76-
if (strpos($key, self::UBER_BAGGAGE_HEADER_PREFIX) === 0) {
76+
if (str_starts_with($key, self::UBER_BAGGAGE_HEADER_PREFIX)) {
7777
$baggageKey = substr($key, strlen(self::UBER_BAGGAGE_HEADER_PREFIX));
7878
$value = $getter->get($carrier, $key) ?? '';
7979
$baggageBuilder->set($baggageKey, rawurldecode($value));

0 commit comments

Comments
 (0)