Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Declaration of kartik\export\ExportWriterPdf::createExternalWriterInstance($config = []) not compatible with PhpSpreadsheet v2 #378

Open
TonisOrmisson opened this issue Feb 21, 2024 · 1 comment

Comments

@TonisOrmisson
Copy link
Contributor

Steps to reproduce the issue

  1. Update to PhpSpreadsheet v2
  2. try to export a PDF file
  3. Not compatible Exception is thrown:

Declaration of kartik\export\ExportWriterPdf::createExternalWriterInstance($config = []) must be compatible with PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf::createExternalWriterInstance(array $config): Mpdf\Mpdf

Isolating the problem

this module:

protected function createExternalWriterInstance($config = [])

parent class:
https://github.com/PHPOffice/PhpSpreadsheet/blob/0c37ae2c30599819d7fab7d13ab5027ffd71f61a/src/PhpSpreadsheet/Writer/Pdf/Mpdf.php#L22
expects (array $config) as params...

@ahmadfadlydziljalal
Copy link

Ya, the problem is happened to me also,
For now, Do you have any solution mate ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants