dompdf / php-svg-lib

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

Namespace declaration statement has to be the very first statement #39

Closed SnakeME closed 6 years ago

SnakeME commented 6 years ago

With 0.3 everything was working fine (except the PHP 7.2 count error https://github.com/PhenX/php-svg-lib/pull/37).

With the new release 0.3.1 I'm now getting the following error:

(1/1) FatalErrorExceptionNamespace declaration statement has to be the very first statement or after any declare call in the script

in Document.php line 9

/vendor/phenx/php-svg-lib/src/Svg/Document.php line 9

I'm using PHP 7.2

When I switch back from 0.3.1 to 0.3 I'm getting again:

(1/1) ErrorExceptioncount(): Parameter must be an array or an object that implements Countable

in Document.php line 259

PhenX commented 6 years ago

Is it better now ?

SnakeME commented 6 years ago

Works like a charm! Thanks for the quick fix!