Argument #2 ($times) must be greater than or equal to 0 in vendor/tecnickcom/tcpdf/tcpdf.php:21765
Stack trace:
#0 vendor/tecnickcom/tcpdf/tcpdf.php(21765): str_repeat(' ', -3)
#1 extensions/tcpdf/ETcPdf.php(94): TCPDF->addHTMLTOC(1, 'INDEX', Array, true, 'B', Array)
Version : 6.4.4 PHP 8.0.12
Code that invokes the error