Closed humunuk closed 3 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
The issue still occurs :(
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