receipt-print-hq / escpos-tools

Utilities to read ESC/POS print data
MIT License
201 stars 73 forks source link

PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given #79

Open mariocarro opened 9 months ago

mariocarro commented 9 months ago

Three calls to implode() en esc2html.php at lines 52, 70 and 172 have the parameters in the wrong order, according to https://www.php.net/manual/es/function.implode.php

jayaddison commented 7 months ago

I'm not a developer of this library, but have encountered te same problem, and I think that it could be due to the removal of the implode(array $array, string $separator): string signature from PHP 8.0 onwards. The pull request at #76 might help to resolve this; I'm going to try that out soon.