tecnickcom / TCPDF

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

PHP 8.1 Deprecation Notice #459

Open mhpcc opened 2 years ago

mhpcc commented 2 years ago

Currently TCPDF spams PHP deprecation notices en masse:

[2021-12-20T11:15:04.984791+00:00] php.INFO: Deprecated: Implicit conversion from float 0.5820629629409302 to int loses precision {"exception":"[object] (ErrorException(code: 0): Deprecated: Implicit conversion from float 0.5820629629409302 to int loses precision at /var/www/svm/vendor/tecnickcom/tcpdf/tcpdf.php:7360)"} []

Filled roughly 3gb of log in the past 24 hours. I'll make a PR shortly.

williamdes commented 2 years ago

Duplicate of #437

williamdes commented 2 years ago

Ref: #401

williamdes commented 2 years ago

Closed in https://github.com/tecnickcom/TCPDF/pull/460