escpos-tools icon indicating copy to clipboard operation
escpos-tools copied to clipboard

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

Open mariocarro opened this issue 1 year ago • 1 comments

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

mariocarro avatar Mar 04 '24 16:03 mariocarro

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.

jayaddison avatar Apr 28 '24 16:04 jayaddison