{"action":"opened","issue":{"url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/227","repository_url":"https://api.github.com/repos/kalessil/phpinspectionsea","labels_url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/227/labels{/name}","comments_url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/227/comments","events_url":"https://api.github.com/repos/kalessil/phpinspectionsea/issues/227/events","html_url":"https://github.com/kalessil/phpinspectionsea/issues/227","id":219390916,"number":227,"title":"Strictness and coalesce operators","user":{"login":"rentalhost","id":421851,"avatar_url":"https://avatars2.githubusercontent.com/u/421851?v=3","gravatar_id":"","url":"https://api.github.com/users/rentalhost","html_url":"https://github.com/rentalhost","followers_url":"https://api.github.com/users/rentalhost/followers","following_url":"https://api.github.com/users/rentalhost/following{/other_user}","gists_url":"https://api.github.com/users/rentalhost/gists{/gist_id}","starred_url":"https://api.github.com/users/rentalhost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rentalhost/subscriptions","organizations_url":"https://api.github.com/users/rentalhost/orgs","repos_url":"https://api.github.com/users/rentalhost/repos","events_url":"https://api.github.com/users/rentalhost/events{/privacy}","received_events_url":"https://api.github.com/users/rentalhost/received_events","type":"User","site_admin":false},"labels":[{"id":576378060,"url":"https://api.github.com/repos/kalessil/phpinspectionsea/labels/easy-to-pick","name":"easy-to-pick","color":"0e8a16","default":false},{"id":462160561,"url":"https://api.github.com/repos/kalessil/phpinspectionsea/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":{"login":"kalessil","id":1577185,"avatar_url":"https://avatars1.githubusercontent.com/u/1577185?v=3","gravatar_id":"","url":"https://api.github.com/users/kalessil","html_url":"https://github.com/kalessil","followers_url":"https://api.github.com/users/kalessil/followers","following_url":"https://api.github.com/users/kalessil/following{/other_user}","gists_url":"https://api.github.com/users/kalessil/gists{/gist_id}","starred_url":"https://api.github.com/users/kalessil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalessil/subscriptions","organizations_url":"https://api.github.com/users/kalessil/orgs","repos_url":"https://api.github.com/users/kalessil/repos","events_url":"https://api.github.com/users/kalessil/events{/privacy}","received_events_url":"https://api.github.com/users/kalessil/received_events","type":"User","site_admin":false},"assignees":[{"login":"kalessil","id":1577185,"avatar_url":"https://avatars1.githubusercontent.com/u/1577185?v=3","gravatar_id":"","url":"https://api.github.com/users/kalessil","html_url":"https://github.com/kalessil","followers_url":"https://api.github.com/users/kalessil/followers","following_url":"https://api.github.com/users/kalessil/following{/other_user}","gists_url":"https://api.github.com/users/kalessil/gists{/gist_id}","starred_url":"https://api.github.com/users/kalessil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalessil/subscriptions","organizations_url":"https://api.github.com/users/kalessil/orgs","repos_url":"https://api.github.com/users/kalessil/repos","events_url":"https://api.github.com/users/kalessil/events{/privacy}","received_events_url":"https://api.github.com/users/kalessil/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2017-04-04T21:32:52Z","updated_at":"2017-04-04T21:32:52Z","closed_at":null,"body":"In case where we have a strict type, coalesce operators should be avoided. Both case above should be avoided.\r\n\r\n```php\r\n/** @var stdClass $class */\r\necho $class ?? true;\r\necho $class ?: true;\r\n```\r\n\r\nBut could be allowed for:\r\n\r\n```php\r\n/** @var stdClass|null $class */\r\n```"}}
{"actor":{"display_login":"rentalhost"}}