D:\xampp\htdocs\escpos-tools>php esc2html.php receipt-with-logo.bin > output.html
PHP Fatal error: Uncaught TypeError: implode(): Argument #2 ($array) must be of type ?array, string given in D:\xampp\htdocs\escpos-tools\esc2html.php:63
Stack trace:
#0 D:\xampp\htdocs\escpos-tools\esc2html.php(63): implode(Array, ' ')
#1 {main}
thrown in D:\xampp\htdocs\escpos-tools\esc2html.php on line 63
I'm guessing you're using PHP8? Using implode with the arguments in that order was deprecated in PHP7.4 and removed in PHP8.
This should be fixed if PR #74 gets merged in. 🤞
I downgrade php to php-7.3.9-Win32-VC15-x64 and use php_imagick-3.6.0-7.3-ts-vc15-x64 and no error from implode()
Link php and imagick archive for windows: php and imagick
Hi, I get this error when using Mike42 - esc2html