{"action":"created","issue":{"url":"https://api.github.com/repos/phpstan/phpstan/issues/265","repository_url":"https://api.github.com/repos/phpstan/phpstan","labels_url":"https://api.github.com/repos/phpstan/phpstan/issues/265/labels{/name}","comments_url":"https://api.github.com/repos/phpstan/phpstan/issues/265/comments","events_url":"https://api.github.com/repos/phpstan/phpstan/issues/265/events","html_url":"https://github.com/phpstan/phpstan/issues/265","id":227652681,"number":265,"title":"Call to static method on an unknown class ","user":{"login":"lookyman","id":3863468,"avatar_url":"https://avatars3.githubusercontent.com/u/3863468?v=3","gravatar_id":"","url":"https://api.github.com/users/lookyman","html_url":"https://github.com/lookyman","followers_url":"https://api.github.com/users/lookyman/followers","following_url":"https://api.github.com/users/lookyman/following{/other_user}","gists_url":"https://api.github.com/users/lookyman/gists{/gist_id}","starred_url":"https://api.github.com/users/lookyman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lookyman/subscriptions","organizations_url":"https://api.github.com/users/lookyman/orgs","repos_url":"https://api.github.com/users/lookyman/repos","events_url":"https://api.github.com/users/lookyman/events{/privacy}","received_events_url":"https://api.github.com/users/lookyman/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-10T11:45:45Z","updated_at":"2017-05-10T11:49:08Z","closed_at":"2017-05-10T11:49:08Z","body":"```php\r\nclass Foo\r\n{\r\n\tpublic function bar()\r\n\t{\r\n\t\tif (class_exists('\\Bla')) {\r\n\t\t\tBla::baz();\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\nproduces `Call to static method baz() on an unknown class Bla`, if the `Bla` class really does not exist. What should we do in this case? Or, what can we do?"},"comment":{"url":"https://api.github.com/repos/phpstan/phpstan/issues/comments/300458165","html_url":"https://github.com/phpstan/phpstan/issues/265#issuecomment-300458165","issue_url":"https://api.github.com/repos/phpstan/phpstan/issues/265","id":300458165,"user":{"login":"ondrejmirtes","id":104888,"avatar_url":"https://avatars3.githubusercontent.com/u/104888?v=3","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":"2017-05-10T11:49:08Z","updated_at":"2017-05-10T11:49:08Z","body":"Same argument as in #246 applies here:\r\n\r\n>  I think it'd be better for the analysis if the function was defined in the environment - PHPStan can then check whether it's called correctly.\r\n\r\nSee the issue for more details and a code sample."}}
{"actor":{"display_login":"ondrejmirtes"}}