andrew-svirin / ebics-client-php

PHP library to make requests by EBICS protocol for financial establishments.
https://andrew-svirin.github.io/ebics-client-php/
MIT License
44 stars 32 forks source link

PDF method incompatible #190

Closed schn4v1d closed 8 months ago

schn4v1d commented 8 months ago

I got this error trying to use the pdf Bank Letter formatter:

Fatal error: Declaration of AndrewSvirin\Ebics\Models\Pdf::outputFile(string $filePath): void must be compatible with Mpdf\Mpdf::OutputFile($fileName) in /vendor/andrew-svirin/ebics-client-php/src/Models/Pdf.php on line 22 

As far as I can tell, it's the return type declaration that's missing from the MPDF method that's causing the issue but I'm not sure.

andrew-svirin commented 8 months ago

You can use older version of Mpdf. It's planned to use more simpler tool for PDF generation later.