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() after PHP 8.10 upgrade #526

Open Kennard opened 2 years ago

Kennard commented 2 years ago

Hello,

I ran into this error upgrading from php version 7.4 to 8.0.13 on Drupal 9.3.

TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in TCPDF->closeHTMLTagHandler() (line 19706 of tcpdf.php

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