From c06496c1fb78dcae9f02197611bd88511e955633 Mon Sep 17 00:00:00 2001 From: Michael Diodone <8616698+mdio@users.noreply.github.com> Date: Mon, 6 Nov 2023 14:31:33 +0100 Subject: [PATCH] Fix deprecated use of ${var} in Encoding.php Since PHP 8.2 the syntax "${var}" is deprecated. "{$var}" should be used instead. --- 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 75446fc5..7c625592 100644 --- a/src/AWS/CRT/Internal/Encoding.php +++ b/src/AWS/CRT/Internal/Encoding.php @@ -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]; }