tecnickcom / TCPDF

Official clone of PHP library to generate PDF documents and barcodes
https://tcpdf.org
Other
4.22k stars 1.52k forks source link

Deprecation warning with php 8.1 #614

Open abusohib opened 1 year ago

abusohib commented 1 year ago

[11-May-2023 09:46:40 Indian/Kerguelen] PHP Deprecated: Implicit conversion from float 0.5 to int loses precision in barcodes/qrcode.php on line 891

https://github.com/tecnickcom/TCPDF/blob/main/include/barcodes/qrcode.php#L891

johnson361 commented 1 year ago

$row =(int) $row; Adding this line should convert the float value to integer just before $ret = $this->rsblocks[$row]['data'][$col]; on line 890

williamdes commented 1 year ago

Can you close this one please?

615 was merged and 6.6.3 is out