From 14b6f822be2b49fffd339c31120085828e7d800d Mon Sep 17 00:00:00 2001 From: codemasher Date: Sun, 12 Dec 2021 23:57:29 +0100 Subject: [PATCH] :shower: force int because PHP8.1 hates this --- 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 53917eea2..e06c90a03 100644 --- a/src/Data/Number.php +++ b/src/Data/Number.php @@ -142,7 +142,7 @@ final class Number extends QRDataModeAbstract{ throw new QRCodeDataException('error decoding numeric value'); } - $result .= $toNumericChar($threeDigitsBits / 100); + $result .= $toNumericChar((int)($threeDigitsBits / 100)); $result .= $toNumericChar(($threeDigitsBits / 10) % 10); $result .= $toNumericChar($threeDigitsBits % 10);