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

Commit 007b35d

Browse files
authored
fix: PHP 7.4 Compatibility Fix (#259)
- fixes `Deprecated: Array and string offset access syntax with curly braces is deprecated in...`
1 parent 1327147 commit 007b35d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Trace/Propagator/CloudTraceFormatter.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ private function baseConvert($numstring, $fromBase, $toBase)
101101
$result = '';
102102

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

107107
do {
@@ -117,7 +117,7 @@ private function baseConvert($numstring, $fromBase, $toBase)
117117
}
118118
}
119119
$length = $newlen;
120-
$result = $newstring{$divide} . $result;
120+
$result = $newstring[$divide] . $result;
121121
} while ($newlen != 0);
122122

123123
return $result;

0 commit comments

Comments
 (0)