Przeglądaj źródła

:octocat: fix PHP 8.2 deprecation warning

smiley 2 lat temu
rodzic
commit
a1f051ca55
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/Data/Number.php

+ 1 - 1
src/Data/Number.php

@@ -159,7 +159,7 @@ final class Number extends QRDataModeAbstract{
 				throw new QRCodeDataException('error decoding numeric value');
 			}
 
-			$result .= $toNumericChar($twoDigitsBits / 10);
+			$result .= $toNumericChar((int)($twoDigitsBits / 10));
 			$result .= $toNumericChar($twoDigitsBits % 10);
 		}
 		elseif($length === 1){