{"action":"created","issue":{"url":"https://api.github.com/repos/phpstan/phpstan/issues/935","repository_url":"https://api.github.com/repos/phpstan/phpstan","labels_url":"https://api.github.com/repos/phpstan/phpstan/issues/935/labels{/name}","comments_url":"https://api.github.com/repos/phpstan/phpstan/issues/935/comments","events_url":"https://api.github.com/repos/phpstan/phpstan/issues/935/events","html_url":"https://github.com/phpstan/phpstan/issues/935","id":316181250,"number":935,"title":"Bug of the null coalescing operator (??) when access an undefined nested property","user":{"login":"mitsuru793","id":8012508,"avatar_url":"https://avatars2.githubusercontent.com/u/8012508?v=4","gravatar_id":"","url":"https://api.github.com/users/mitsuru793","html_url":"https://github.com/mitsuru793","followers_url":"https://api.github.com/users/mitsuru793/followers","following_url":"https://api.github.com/users/mitsuru793/following{/other_user}","gists_url":"https://api.github.com/users/mitsuru793/gists{/gist_id}","starred_url":"https://api.github.com/users/mitsuru793/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mitsuru793/subscriptions","organizations_url":"https://api.github.com/users/mitsuru793/orgs","repos_url":"https://api.github.com/users/mitsuru793/repos","events_url":"https://api.github.com/users/mitsuru793/events{/privacy}","received_events_url":"https://api.github.com/users/mitsuru793/received_events","type":"User","site_admin":false},"labels":[{"id":680519999,"url":"https://api.github.com/repos/phpstan/phpstan/labels/bug","name":"bug","color":"d93f0b","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/phpstan/phpstan/milestones/8","html_url":"https://github.com/phpstan/phpstan/milestone/8","labels_url":"https://api.github.com/repos/phpstan/phpstan/milestones/8/labels","id":2944910,"number":8,"title":"0.10","description":"","creator":{"login":"ondrejmirtes","id":104888,"avatar_url":"https://avatars0.githubusercontent.com/u/104888?v=4","gravatar_id":"","url":"https://api.github.com/users/ondrejmirtes","html_url":"https://github.com/ondrejmirtes","followers_url":"https://api.github.com/users/ondrejmirtes/followers","following_url":"https://api.github.com/users/ondrejmirtes/following{/other_user}","gists_url":"https://api.github.com/users/ondrejmirtes/gists{/gist_id}","starred_url":"https://api.github.com/users/ondrejmirtes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ondrejmirtes/subscriptions","organizations_url":"https://api.github.com/users/ondrejmirtes/orgs","repos_url":"https://api.github.com/users/ondrejmirtes/repos","events_url":"https://api.github.com/users/ondrejmirtes/events{/privacy}","received_events_url":"https://api.github.com/users/ondrejmirtes/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":24,"state":"open","created_at":"2017-11-28T21:15:33Z","updated_at":"2018-04-27T19:04:44Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2018-04-20T08:48:26Z","updated_at":"2018-04-27T20:19:20Z","closed_at":null,"author_association":"NONE","body":"I use dev-master version.\r\n\r\n### Summary of a problem or a feature request\r\n\r\nI found a bug of operator ?? when access an access an undefined nested property.\r\n\r\n### Code snippet that reproduces the problem\r\n\r\nhttps://phpstan.org/r/92ee123d57c2bc383e937b2f2491c0e5\r\n\r\n```php\r\n<?php declare(strict_types = 1);\r\n\r\n$o = new stdClass;\r\n$o->user ?? ''; // pass\r\n$o->user->name ?? ''; // false\r\n\r\n// Binary operation \"??\" between mixed and '' results in an error.  \r\n```\r\n\r\n### Expected output\r\n\r\nI want `$o->user->name ?? '';` to pass."},"comment":{"url":"https://api.github.com/repos/phpstan/phpstan/issues/comments/385083204","html_url":"https://github.com/phpstan/phpstan/issues/935#issuecomment-385083204","issue_url":"https://api.github.com/repos/phpstan/phpstan/issues/935","id":385083204,"user":{"login":"ondrejmirtes","id":104888,"avatar_url":"https://avatars0.githubusercontent.com/u/104888?v=4","gravatar_id":"","url":"https://api.github.com/users/ondrejmirtes","html_url":"https://github.com/ondrejmirtes","followers_url":"https://api.github.com/users/ondrejmirtes/followers","following_url":"https://api.github.com/users/ondrejmirtes/following{/other_user}","gists_url":"https://api.github.com/users/ondrejmirtes/gists{/gist_id}","starred_url":"https://api.github.com/users/ondrejmirtes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ondrejmirtes/subscriptions","organizations_url":"https://api.github.com/users/ondrejmirtes/orgs","repos_url":"https://api.github.com/users/ondrejmirtes/repos","events_url":"https://api.github.com/users/ondrejmirtes/events{/privacy}","received_events_url":"https://api.github.com/users/ondrejmirtes/received_events","type":"User","site_admin":false},"created_at":"2018-04-27T20:19:20Z","updated_at":"2018-04-27T20:19:20Z","author_association":"OWNER","body":"Fixed: https://github.com/phpstan/phpstan/commit/eb8947d545e72b68595ea35b0214f67533e4f6c1"}}
{"actor":{"display_login":"ondrejmirtes"}}