mirror of
https://github.com/chillerlan/php-qrcode.git
synced 2026-08-30 12:07:32 +00:00
🚿 force int because PHP8.1 hates this
This commit is contained in:
+1
-1
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user