{"action":"created","issue":{"url":"https://api.github.com/repos/phpstan/phpstan/issues/626","repository_url":"https://api.github.com/repos/phpstan/phpstan","labels_url":"https://api.github.com/repos/phpstan/phpstan/issues/626/labels{/name}","comments_url":"https://api.github.com/repos/phpstan/phpstan/issues/626/comments","events_url":"https://api.github.com/repos/phpstan/phpstan/issues/626/events","html_url":"https://github.com/phpstan/phpstan/issues/626","id":277714405,"number":626,"title":"How to handle errors for function in the global namespace","user":{"login":"tifabien","id":705356,"avatar_url":"https://avatars0.githubusercontent.com/u/705356?v=4","gravatar_id":"","url":"https://api.github.com/users/tifabien","html_url":"https://github.com/tifabien","followers_url":"https://api.github.com/users/tifabien/followers","following_url":"https://api.github.com/users/tifabien/following{/other_user}","gists_url":"https://api.github.com/users/tifabien/gists{/gist_id}","starred_url":"https://api.github.com/users/tifabien/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tifabien/subscriptions","organizations_url":"https://api.github.com/users/tifabien/orgs","repos_url":"https://api.github.com/users/tifabien/repos","events_url":"https://api.github.com/users/tifabien/events{/privacy}","received_events_url":"https://api.github.com/users/tifabien/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-29T11:09:51Z","updated_at":"2017-11-29T11:29:22Z","closed_at":"2017-11-29T11:29:22Z","author_association":"NONE","body":"I just installed the project and tried to run the first analysis on my code. Command line returns errors on function associated to the global namespace \r\n\r\n- Instantiated class SoapClient not found.\r\n- Instantiated class SoapHeader not found.\r\n- Instantiated class ZipArchive not found.\r\n- Function licenseErrorHandler not found.\r\n...\r\n\r\nHow can I handle these errors in order they are ignored? I saw there is the ignoreErrors configuration but I assume that if I create my own SoapClient class I could ignore true errors related to this class?\r\n\r\nThanks for your help!\r\n"},"comment":{"url":"https://api.github.com/repos/phpstan/phpstan/issues/comments/347832878","html_url":"https://github.com/phpstan/phpstan/issues/626#issuecomment-347832878","issue_url":"https://api.github.com/repos/phpstan/phpstan/issues/626","id":347832878,"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":"2017-11-29T11:29:22Z","updated_at":"2017-11-29T11:29:22Z","author_association":"OWNER","body":"This has nothing to do with global namespace, but with the fact that the environment you run PHPStan in does not match the environment of your application, e.g. you don't have installed the required extensions."}}
{"actor":{"display_login":"ondrejmirtes"}}