{"action":"created","issue":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/4988","repository_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle","labels_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/4988/labels{/name}","comments_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/4988/comments","events_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/4988/events","html_url":"https://github.com/sonata-project/SonataAdminBundle/pull/4988","id":301387844,"number":4988,"title":"Fix fatal error in strict mode: strlen() expects parameter 1 to be string, null given","user":{"login":"aokhrimenko","id":6370006,"avatar_url":"https://avatars2.githubusercontent.com/u/6370006?v=4","gravatar_id":"","url":"https://api.github.com/users/aokhrimenko","html_url":"https://github.com/aokhrimenko","followers_url":"https://api.github.com/users/aokhrimenko/followers","following_url":"https://api.github.com/users/aokhrimenko/following{/other_user}","gists_url":"https://api.github.com/users/aokhrimenko/gists{/gist_id}","starred_url":"https://api.github.com/users/aokhrimenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aokhrimenko/subscriptions","organizations_url":"https://api.github.com/users/aokhrimenko/orgs","repos_url":"https://api.github.com/users/aokhrimenko/repos","events_url":"https://api.github.com/users/aokhrimenko/events{/privacy}","received_events_url":"https://api.github.com/users/aokhrimenko/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-01T12:32:51Z","updated_at":"2018-03-01T12:57:46Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/pulls/4988","html_url":"https://github.com/sonata-project/SonataAdminBundle/pull/4988","diff_url":"https://github.com/sonata-project/SonataAdminBundle/pull/4988.diff","patch_url":"https://github.com/sonata-project/SonataAdminBundle/pull/4988.patch"},"body":"I am targeting this branch, because strict mode is enabled only in master.\r\n\r\n## Changelog\r\n<!-- REMOVE EMPTY SECTIONS -->\r\n```markdown\r\n### Fixed\r\nFatal error in strict mode\r\n```\r\n\r\n## Subject\r\nFix a bug with strlen on null value:\r\n\r\n```\r\nPHP Fatal error:  Uncaught Symfony\\Component\\Debug\\Exception\\FatalThrowableError: Type error: strlen() expects parameter 1 to be string, null given in /var/www/vendor/sonata-project/admin-bundle/src/DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php:402\r\nStack trace:\r\n#0 /var/www/vendor/sonata-project/admin-bundle/src/DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php(402): strlen(NULL)\r\n#1 /var/www/vendor/sonata-project/admin-bundle/src/DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php(67): Sonata\\AdminBundle\\DependencyInjection\\Compiler\\AddDependencyCallsCompilerPass->replaceDefaultArguments(Array, Object(Symfony\\Component\\DependencyInjection\\Definition), NULL)\r\n#2 /var/www/vendor/symfony/dependency-injection/Compiler/Compiler.php(95): Sonata\\AdminBundle\\DependencyInjection\\Compiler\\AddDependencyCallsCompilerPass->process(Object(Symfony\\Component\\DependencyInjection\\ContainerBuilder))\r\n#3 /var/www/vendor/symfony/dependency-injection/ContainerBuilder.php(711): Symfony\\Component\\DependencyInj in /var/www/vendor/sonata-project/admin-bundle/src/DependencyInjection/Compiler/AddDependencyCallsCompilerPass.php on line 402\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/comments/369583500","html_url":"https://github.com/sonata-project/SonataAdminBundle/pull/4988#issuecomment-369583500","issue_url":"https://api.github.com/repos/sonata-project/SonataAdminBundle/issues/4988","id":369583500,"user":{"login":"aokhrimenko","id":6370006,"avatar_url":"https://avatars2.githubusercontent.com/u/6370006?v=4","gravatar_id":"","url":"https://api.github.com/users/aokhrimenko","html_url":"https://github.com/aokhrimenko","followers_url":"https://api.github.com/users/aokhrimenko/followers","following_url":"https://api.github.com/users/aokhrimenko/following{/other_user}","gists_url":"https://api.github.com/users/aokhrimenko/gists{/gist_id}","starred_url":"https://api.github.com/users/aokhrimenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aokhrimenko/subscriptions","organizations_url":"https://api.github.com/users/aokhrimenko/orgs","repos_url":"https://api.github.com/users/aokhrimenko/repos","events_url":"https://api.github.com/users/aokhrimenko/events{/privacy}","received_events_url":"https://api.github.com/users/aokhrimenko/received_events","type":"User","site_admin":false},"created_at":"2018-03-01T12:57:46Z","updated_at":"2018-03-01T12:57:46Z","author_association":"NONE","body":"@greg0ire What should I do?"}}
{"actor":{"display_login":"aokhrimenko"}}