mccarlosen / laravel-mpdf

Generate PDFs in Laravel with Mpdf.
389 stars 106 forks source link

Laravel 9 error declaration of setLogger not compatible with Psr #80

Closed zulhilmixrahman closed 2 years ago

zulhilmixrahman commented 2 years ago

After trying upgrade to Laravel 9, an error of declaration of setLogger must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void occurred.

laravel 9 mpdf

https://flareapp.io/share/47q10E07#F1

zulhilmixrahman commented 2 years ago

Sorry, overlooked in closed issue section.

mrdigitalau commented 2 years ago

Hi mate, any chance you can elaborate on what you did to fix the issue? Cheers

mrdigitalau commented 2 years ago

Sorry, for anyone else asking, just add "mpdf/mpdf": "^8.0.17" to your composer.json and reinstall - it will override what this package uses. Cheers