Explorar o código

:shower: force int because PHP8.1 hates this

codemasher %!s(int64=4) %!d(string=hai) anos
pai
achega
14b6f822be
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Data/Number.php

+ 1 - 1
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);