From eb0c6e4e142224a10b08f49ebf87f32611d162b2 Mon Sep 17 00:00:00 2001 From: Michael Diodone <8616698+mdio@users.noreply.github.com> Date: Wed, 8 Nov 2023 01:42:13 +0100 Subject: [PATCH] Fix deprecated use of ${var} in Encoding.php (#108) --- src/AWS/CRT/Internal/Encoding.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AWS/CRT/Internal/Encoding.php b/src/AWS/CRT/Internal/Encoding.php index 75446fc..7c62559 100644 --- a/src/AWS/CRT/Internal/Encoding.php +++ b/src/AWS/CRT/Internal/Encoding.php @@ -24,7 +24,7 @@ final class Encoding { 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]; }