dompdf / php-svg-lib

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

Compatability with PHP72 #29

Closed masseelch closed 6 years ago

masseelch commented 6 years ago

Since PHP72 using the count()method on objects not implementing \Countable will fail.

barryvdh commented 6 years ago

It should probably be an array, not an object, right? Alternative: https://github.com/PhenX/php-svg-lib/pull/32

By default it's null which will cause it to fail.

PhenX commented 6 years ago

32 closes this issue in another way that I prefer