yii2-export icon indicating copy to clipboard operation
yii2-export copied to clipboard

fixed: https://github.com/kartik-v/yii2-export/issues/378

Open ahmadfadlydziljalal opened this issue 1 year ago • 2 comments

Scope

This pull request includes a

  • [x ] Bug fix
  • [ ] New feature
  • [ ] Translation

PHP Compile Error – yii\base\ErrorException Declaration of kartik\export\ExportWriterPdf::createExternalWriterInstance($config = []) must be compatible with PhpOffice\PhpSpreadsheet\Writer\Pdf\Mpdf::createExternalWriterInstance(array $config): Mpdf\Mpdf

Related Issues

If this is related to an existing ticket, include a link to it as well. https://github.com/kartik-v/yii2-export/issues/378

ahmadfadlydziljalal avatar Mar 19 '24 11:03 ahmadfadlydziljalal

Thanks for the fix. Any chance this can be merged and released ?

remitache avatar Jun 21 '24 08:06 remitache

if this can't be merged for some reason, another solution that doesn't involve code changes would be to update the composer.json to read "phpoffice/phpspreadsheet": "^1.0" rather than "phpoffice/phpspreadsheet": ">=1.0", forcing composer to choose a 1.* version of phpspreadsheet

chriscpty avatar Oct 22 '24 12:10 chriscpty

@kartik-v from my point of view, you can merge this. This PR ensures correct signature of parent class (Mpdf).

HenryVolkmer avatar Nov 06 '24 08:11 HenryVolkmer

Thanks this will work in latest PHP releases probably > 8 - will need to update the BC breaking dependencies for older PHP versions. Will check a bit on this and probaby create a BC breaking version supporting only newer PHP releases.

kartik-v avatar Nov 09 '24 19:11 kartik-v

Any chance this can be merged and released?

gshap1995 avatar Feb 28 '25 12:02 gshap1995

@gshap1995 a 2.0.0 version with breaking changes (including this) is already planned, but might still take a bit: https://github.com/kartik-v/yii2-export/pull/381#issuecomment-2608692933

chriscpty avatar Feb 28 '25 12:02 chriscpty