PHP changed the way they count by requiring a Countable to be inserted as value for the count() function
The _tagStart method tried to count $this->attributes which in somecases equals NULL
With the added fix it will ensure it is a valid Countable, it will return an empty array if the value is NULL
My error:
ErrorException: count(): Parameter must be an array or an object that implements Countable in ~\vendor\phenx\php-svg-lib\src\Svg\Document.php:259
PHP changed the way they count by requiring a Countable to be inserted as value for the
count()
function The_tagStart
method tried to count$this->attributes
which in somecases equalsNULL
With the added fix it will ensure it is a valid Countable, it will return an empty array if the value isNULL
My error: ErrorException: count(): Parameter must be an array or an object that implements Countable in ~\vendor\phenx\php-svg-lib\src\Svg\Document.php:259