Просмотр исходного кода

:octocat: fix PHP 8.2 deprecation warning

smiley 2 лет назад
Родитель
Сommit
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){