I have updated php5 to php7.4 now Facing probelm with TCPDF as it was working properly with php5. Now I am facing two problems as given below
- Message: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"?
Filename: Tcpdf/Tcpdf.php
Line Number: 17774
- Message: chr() expects parameter 1 to be int, string given
Filename: include/tcpdf_fonts.php
Line Number: 1671
Kindly suggest me best solution as I'm not able to find solution of these bugs.
Thanks In Advance.
I've got the solution for this problem don't know is this the best approach or not but it work.
In the file include/tcpdf_fonts.php, I validate $c to make sure only numeric is allow.
Got the same error.
Replace the if(is_numeric($c)) block with a simple
as recommended here https://github.com/deltaaskii/lara-pdf-merger/pull/45/files/ec44e3bf2ae9d47a27ff64ce310c5c7c15e5a4b2
That worked for me.
Last edit: Benjamin Schiller 2020-05-12
mi me funciono la solución