dompdf / php-svg-lib

SVG file parsing / rendering library
GNU Lesser General Public License v3.0
1.4k stars 77 forks source link

PHP 7.4 compatibility #60

Closed humunuk closed 3 years ago

humunuk commented 4 years ago

When used with DomPDF Cpdf.php file, the scripts sets arrays ($currentLineTransparency and $currentFillTransparency) to null: https://github.com/PhenX/php-svg-lib/blob/master/src/Svg/Surface/SurfaceCpdf.php#L394

In Cpdf it checks first if attempted mode and opacity is same as set before, this produces "Trying to access array offset on value of type null" notice in Php 7.4, because SurfadeCpdf sets those arrays to null after setting mode

ghidoz commented 3 years ago

The issue still occurs :(