barryvdh / laravel-dompdf

A DOMPDF Wrapper for Laravel
MIT License
6.73k stars 969 forks source link

HTML5Lib > Treebuilder - Creation of dynamic property HTML5_TreeBuilder::$pendingTableCharactersNull is deprecated. #950

Closed harleyj closed 1 year ago

harleyj commented 1 year ago

PHP 8.2 looks like it throws an error due to no longer supporting creation of dynamic properties. It doesn't look like this issue is affecting anyone else, so it could be some sort of edge case with the way my blade templates are being used.

To Reproduce

Expected behavior No exception should be thrown.

Screenshots image

Additional context I was able to fix this issue by defining the $pendingTableCharactersNull in dompdf/dompdf/lib/html5lib/TreeBuilder.php image

harleyj commented 1 year ago

Issue was resolved by manually updating composer.json to using v2.x.