From 6d106fad831099dda24a33207eba647ad57530aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Proch=C3=A1zka?= Date: Thu, 9 Feb 2023 12:58:29 +0100 Subject: [PATCH] Fix deprecation notice in PHP 8.2 (#56) Replaces string interpolation deprecated in PHP 8.2. See https://www.php.net/manual/en/migration82.deprecated.php#migration82.deprecated.core.dollar-brace-interpolation --- src/QrPayment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/QrPayment.php b/src/QrPayment.php index 3f75246..eb9a5c3 100644 --- a/src/QrPayment.php +++ b/src/QrPayment.php @@ -176,7 +176,7 @@ public function getQrString(): string $xzBinary = $this->getXzBinary(); // we need to get raw lzma1 compressed data with parameters LC=3, LP=0, PB=2, DICT_SIZE=128KiB - $xzProcess = proc_open("${xzBinary} --format=raw --lzma1=lc=3,lp=0,pb=2,dict=128KiB -c -", [ + $xzProcess = proc_open("{$xzBinary} --format=raw --lzma1=lc=3,lp=0,pb=2,dict=128KiB -c -", [ 0 => [ 'pipe', 'r',