Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

Commit

Permalink
fix: PHP 7.4 Compatibility Fix (#259)
Browse files Browse the repository at this point in the history
- fixes `Deprecated: Array and string offset access syntax with curly braces is deprecated in...`
  • Loading branch information
ericnorris authored Jun 12, 2020
1 parent 1327147 commit 007b35d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Trace/Propagator/CloudTraceFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private function baseConvert($numstring, $fromBase, $toBase)
$result = '';

for ($i = 0; $i < $length; $i++) {
$number[$i] = strpos($chars, $numstring{$i});
$number[$i] = strpos($chars, $numstring[$i]);
}

do {
Expand All @@ -117,7 +117,7 @@ private function baseConvert($numstring, $fromBase, $toBase)
}
}
$length = $newlen;
$result = $newstring{$divide} . $result;
$result = $newstring[$divide] . $result;
} while ($newlen != 0);

return $result;
Expand Down

0 comments on commit 007b35d

Please sign in to comment.