xml_set_*_handler() deprecation fix for PHP 8.4#3563
xml_set_*_handler() deprecation fix for PHP 8.4#3563bsweeney merged 2 commits intodompdf:masterfrom laoneo:patch-1
Conversation
|
Is this covered by tests, I did not see it fail on 8.4 🤔 |
|
Don't know,but it's a deprecated warning only. |
|
I don't think there are any tests related to SVG parsing. I'll add some tests to this PR to cover some Image::Cache use cases (unless somebody beats me to it). |
|
I went ahead and added a test case via #3564 so I will move forward with merging this. Deprecations don't currently generate errors so unless somebody was really paying attention this could have been missed even with relevant tests. |
Thank you! |
|
Thank you guys, in the meantime I shipped my fork with the fix. |
relates to dompdf#3563
With the release of PHP 8.4, the xml_set_*_handler() function arguments must be callable or null. Otherwise is a deprecated warning thrown:
Passing non-callable strings is deprecated since 8.4
The message is a bit misleading as dompdf uses
falseas end handler and not a string.