Преглед изворни кода

:octocat: fix PHP 8.2 deprecation warning

smiley пре 2 година
родитељ
комит
a1f051ca55
1 измењених фајлова са 1 додато и 1 уклоњено
  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){