Skip to content

Commit 14b6f82

Browse files
committed
🚿 force int because PHP8.1 hates this
1 parent f1858fb commit 14b6f82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Data/Number.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public static function decodeSegment(BitBuffer $bitBuffer, int $versionNumber):s
142142
throw new QRCodeDataException('error decoding numeric value');
143143
}
144144

145-
$result .= $toNumericChar($threeDigitsBits / 100);
145+
$result .= $toNumericChar((int)($threeDigitsBits / 100));
146146
$result .= $toNumericChar(($threeDigitsBits / 10) % 10);
147147
$result .= $toNumericChar($threeDigitsBits % 10);
148148

0 commit comments

Comments
 (0)