Closed gemal closed 2 years ago
Hi @gemal I do not understand where the problem is, could you explain further ?
the problem is that the docblock says that $lw
is a string
while it's being set to a int
A tool like phpstan will complain about this
the problem is that the docblock says that
$lw
is astring
while it's being set to aint
A tool like phpstan will complain about this
Oh snap, I missed that Added a commit for it #402
This is causing the following error since we started incorrectly using a string:
TypeError: Unsupported operand types: string * float in file /var/www/vendor/tecnickcom/tcpdf/tcpdf.php on line 3490
Stack trace:
1. TypeError->() /var/www/vendor/tecnickcom/tcpdf/tcpdf.php:3490
2. TCPDF->Header() /var/www/vendor/tecnickcom/tcpdf/tcpdf.php:3605
3. TCPDF->setHeader() /var/www/vendor/tecnickcom/tcpdf/tcpdf.php:3272
4. TCPDF->startPage() /var/www/vendor/tecnickcom/tcpdf/tcpdf.php:3184
https://github.com/tecnickcom/TCPDF/blob/main/tcpdf.php#L3318
you have:
@param string $lw header image logo width in mm
but:
$lw=0