{"action":"created","issue":{"url":"https://api.github.com/repos/mattriverm/PhanUnusedVariable/issues/3","repository_url":"https://api.github.com/repos/mattriverm/PhanUnusedVariable","labels_url":"https://api.github.com/repos/mattriverm/PhanUnusedVariable/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mattriverm/PhanUnusedVariable/issues/3/comments","events_url":"https://api.github.com/repos/mattriverm/PhanUnusedVariable/issues/3/events","html_url":"https://github.com/mattriverm/PhanUnusedVariable/issues/3","id":243270667,"number":3,"title":"For static variables, the order of uses and definitions shouldn't matter","user":{"login":"TysonAndre","id":1904430,"avatar_url":"https://avatars2.githubusercontent.com/u/1904430?v=4","gravatar_id":"","url":"https://api.github.com/users/TysonAndre","html_url":"https://github.com/TysonAndre","followers_url":"https://api.github.com/users/TysonAndre/followers","following_url":"https://api.github.com/users/TysonAndre/following{/other_user}","gists_url":"https://api.github.com/users/TysonAndre/gists{/gist_id}","starred_url":"https://api.github.com/users/TysonAndre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TysonAndre/subscriptions","organizations_url":"https://api.github.com/users/TysonAndre/orgs","repos_url":"https://api.github.com/users/TysonAndre/repos","events_url":"https://api.github.com/users/TysonAndre/events{/privacy}","received_events_url":"https://api.github.com/users/TysonAndre/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-16T22:21:29Z","updated_at":"2017-07-20T09:07:01Z","closed_at":null,"body":"Currently, analysis of the below function body warns about setting $initialized = true.\r\n\r\n```\r\n        static $initialized = false;\r\n        if (!$initialized) {\r\n            self::init();\r\n            $initialized = true;\r\n        }   \r\n```\r\n\r\nCode such as the below should continue warning\r\n\r\n```\r\n        static $initialized = false;\r\n        $initialized = true;\r\n```"},"comment":{"url":"https://api.github.com/repos/mattriverm/PhanUnusedVariable/issues/comments/316643975","html_url":"https://github.com/mattriverm/PhanUnusedVariable/issues/3#issuecomment-316643975","issue_url":"https://api.github.com/repos/mattriverm/PhanUnusedVariable/issues/3","id":316643975,"user":{"login":"mattriverm","id":3583051,"avatar_url":"https://avatars2.githubusercontent.com/u/3583051?v=4","gravatar_id":"","url":"https://api.github.com/users/mattriverm","html_url":"https://github.com/mattriverm","followers_url":"https://api.github.com/users/mattriverm/followers","following_url":"https://api.github.com/users/mattriverm/following{/other_user}","gists_url":"https://api.github.com/users/mattriverm/gists{/gist_id}","starred_url":"https://api.github.com/users/mattriverm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattriverm/subscriptions","organizations_url":"https://api.github.com/users/mattriverm/orgs","repos_url":"https://api.github.com/users/mattriverm/repos","events_url":"https://api.github.com/users/mattriverm/events{/privacy}","received_events_url":"https://api.github.com/users/mattriverm/received_events","type":"User","site_admin":false},"created_at":"2017-07-20T09:07:01Z","updated_at":"2017-07-20T09:07:01Z","body":"I think 684328c does what you want. It would be nice to add a few more tests, do you have more examples off the top of your head?"}}
{"actor":{"display_login":"mattriverm"}}