TCPDF icon indicating copy to clipboard operation
TCPDF copied to clipboard

Deprecation warning with php 8.1

Open abusohib opened this issue 1 year ago • 2 comments

[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

abusohib avatar May 11 '23 05:05 abusohib

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

johnson361 avatar May 11 '23 10:05 johnson361

Can you close this one please? #615 was merged and 6.6.3 is out

williamdes avatar Sep 06 '23 08:09 williamdes