Skip to content

Commit

Permalink
Fix deprecated use of ${var} in Encoding.php (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdio committed Nov 8, 2023
1 parent b2db8ca commit eb0c6e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AWS/CRT/Internal/Encoding.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static function readStrings($buffer) {
public static function decodeString($buffer) {
$len = unpack("N", $buffer)[1];
$buffer = substr($buffer, 4);
$str = unpack("a${len}", $buffer)[1];
$str = unpack("a{$len}", $buffer)[1];
return [$len, $str];
}

Expand Down

0 comments on commit eb0c6e4

Please sign in to comment.