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

TypeError: count() on PHP 8.0.24 #555

Closed mazuk6 closed 1 year ago

mazuk6 commented 1 year ago

Hello,

I ran into this error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in vendor/tecnickcom/tcpdf/tcpdf.php:19718

// for each row if (count($table_el['trids']) > 0) { unset($xmax); }

by Calling TCPDF->closeHTMLTagHandler() through TCPDF->writeHTMLCell()

NiklasBr commented 1 year ago

Try #556 @mazuk6