Fix deprecated use of ${var} in Encoding.php

Since PHP 8.2 the syntax "${var}" is deprecated.
"{$var}" should be used instead.
This commit is contained in:
Michael Diodone
2023-11-06 14:31:33 +01:00
committed by GitHub
parent b2db8ca161
commit c06496c1fb
+1 -1
View File
@@ -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];
}