🚿 force int because PHP8.1 hates this

This commit is contained in:
codemasher
2021-12-12 23:57:29 +01:00
parent f1858fb2da
commit 14b6f822be
+1 -1
View File
@@ -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);