Compatible Php 8.1 Pdf repositories #486
-
I get this error using mpdf/mpdf using rossaddison/yii-invoice
and I appreciate that mpdf/mpdf is trying to accomodate php version 5.4 without type declarations at the end of their setLogger functions and so the 'void' causes this conflict and I can hack their vendor files by inserting return types, specifically 'void' at the end of their functions. I have tried creating a fork of mpdf/mpdf including these 'hacks', for want of a better word, but composer is returning the following error.
Do you know of any good php pdf generators that are strict return type focused using psr/log version 3 that will avoid this type of error? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
You need to register your own fork in |
Beta Was this translation helpful? Give feedback.
-
I have simplified rossaddison/mpdf composer.json to { and inserted "rossaddison/mpdf": "*", into rossaddison/yii-invoice composer.json without adding anything to repositories section of yii-invoice composer.json and added: "psr/log": "^1.0|^2.0|^3.0", to the yii-invoice composer.json. Pdf's are working fine. Thanks for your help. |
Beta Was this translation helpful? Give feedback.
You need to register your own fork in
packagist.org
or specify it in composer.json inrepositories
section.https://stackoverflow.com/a/13500676