From a1f051ca55d034aa964a9861bc80483967b935d4 Mon Sep 17 00:00:00 2001 From: smiley Date: Sat, 8 Apr 2023 23:22:59 +0200 Subject: [PATCH] :octocat: fix PHP 8.2 deprecation warning --- src/Data/Number.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Data/Number.php b/src/Data/Number.php index 5a6bd77ee..c69457574 100644 --- a/src/Data/Number.php +++ b/src/Data/Number.php @@ -159,7 +159,7 @@ final class Number extends QRDataModeAbstract{ throw new QRCodeDataException('error decoding numeric value'); } - $result .= $toNumericChar($twoDigitsBits / 10); + $result .= $toNumericChar((int)($twoDigitsBits / 10)); $result .= $toNumericChar($twoDigitsBits % 10); } elseif($length === 1){