{"action":"created","issue":{"url":"https://api.github.com/repos/PhenX/php-svg-lib/issues/39","repository_url":"https://api.github.com/repos/PhenX/php-svg-lib","labels_url":"https://api.github.com/repos/PhenX/php-svg-lib/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/PhenX/php-svg-lib/issues/39/comments","events_url":"https://api.github.com/repos/PhenX/php-svg-lib/issues/39/events","html_url":"https://github.com/PhenX/php-svg-lib/issues/39","id":328814270,"node_id":"MDU6SXNzdWUzMjg4MTQyNzA=","number":39,"title":"Namespace declaration statement has to be the very first statement","user":{"login":"SnakeME","id":1651752,"node_id":"MDQ6VXNlcjE2NTE3NTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1651752?v=4","gravatar_id":"","url":"https://api.github.com/users/SnakeME","html_url":"https://github.com/SnakeME","followers_url":"https://api.github.com/users/SnakeME/followers","following_url":"https://api.github.com/users/SnakeME/following{/other_user}","gists_url":"https://api.github.com/users/SnakeME/gists{/gist_id}","starred_url":"https://api.github.com/users/SnakeME/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SnakeME/subscriptions","organizations_url":"https://api.github.com/users/SnakeME/orgs","repos_url":"https://api.github.com/users/SnakeME/repos","events_url":"https://api.github.com/users/SnakeME/events{/privacy}","received_events_url":"https://api.github.com/users/SnakeME/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-03T09:37:46Z","updated_at":"2018-06-03T10:14:42Z","closed_at":null,"author_association":"NONE","body":"With 0.3 everything was working fine (except the PHP 7.2 count error https://github.com/PhenX/php-svg-lib/pull/37).\r\n\r\nWith the new release 0.3.1 I'm now getting the following error:\r\n\r\n(1/1) FatalErrorExceptionNamespace declaration statement has to be the very first statement or after any declare call in the script\r\n--\r\nin Document.php line 9\r\n\r\n/vendor/phenx/php-svg-lib/src/Svg/Document.php line 9\r\n\r\nI'm using PHP 7.2\r\n\r\nWhen I switch back from 0.3.1 to 0.3 I'm getting again:\r\n\r\n(1/1) ErrorExceptioncount(): Parameter must be an array or an object that implements Countable\r\n--\r\nin Document.php line 259"},"comment":{"url":"https://api.github.com/repos/PhenX/php-svg-lib/issues/comments/394151622","html_url":"https://github.com/PhenX/php-svg-lib/issues/39#issuecomment-394151622","issue_url":"https://api.github.com/repos/PhenX/php-svg-lib/issues/39","id":394151622,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDE1MTYyMg==","user":{"login":"PhenX","id":42170,"node_id":"MDQ6VXNlcjQyMTcw","avatar_url":"https://avatars3.githubusercontent.com/u/42170?v=4","gravatar_id":"","url":"https://api.github.com/users/PhenX","html_url":"https://github.com/PhenX","followers_url":"https://api.github.com/users/PhenX/followers","following_url":"https://api.github.com/users/PhenX/following{/other_user}","gists_url":"https://api.github.com/users/PhenX/gists{/gist_id}","starred_url":"https://api.github.com/users/PhenX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhenX/subscriptions","organizations_url":"https://api.github.com/users/PhenX/orgs","repos_url":"https://api.github.com/users/PhenX/repos","events_url":"https://api.github.com/users/PhenX/events{/privacy}","received_events_url":"https://api.github.com/users/PhenX/received_events","type":"User","site_admin":false},"created_at":"2018-06-03T10:14:42Z","updated_at":"2018-06-03T10:14:42Z","author_association":"OWNER","body":"Is it better now ?"}}
{"actor":{"display_login":"PhenX"}}