diff --git a/src/Trace/Propagator/CloudTraceFormatter.php b/src/Trace/Propagator/CloudTraceFormatter.php index ad5e29124..382c0c978 100644 --- a/src/Trace/Propagator/CloudTraceFormatter.php +++ b/src/Trace/Propagator/CloudTraceFormatter.php @@ -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 { @@ -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;