{"action":"created","issue":{"url":"https://api.github.com/repos/phan/phan/issues/2100","repository_url":"https://api.github.com/repos/phan/phan","labels_url":"https://api.github.com/repos/phan/phan/issues/2100/labels{/name}","comments_url":"https://api.github.com/repos/phan/phan/issues/2100/comments","events_url":"https://api.github.com/repos/phan/phan/issues/2100/events","html_url":"https://github.com/phan/phan/issues/2100","id":376547535,"node_id":"MDU6SXNzdWUzNzY1NDc1MzU=","number":2100,"title":"PhanUndeclaredVariable Variable $argv is undeclared","user":{"login":"jdavidlists","id":16322732,"node_id":"MDQ6VXNlcjE2MzIyNzMy","avatar_url":"https://avatars0.githubusercontent.com/u/16322732?v=4","gravatar_id":"","url":"https://api.github.com/users/jdavidlists","html_url":"https://github.com/jdavidlists","followers_url":"https://api.github.com/users/jdavidlists/followers","following_url":"https://api.github.com/users/jdavidlists/following{/other_user}","gists_url":"https://api.github.com/users/jdavidlists/gists{/gist_id}","starred_url":"https://api.github.com/users/jdavidlists/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdavidlists/subscriptions","organizations_url":"https://api.github.com/users/jdavidlists/orgs","repos_url":"https://api.github.com/users/jdavidlists/repos","events_url":"https://api.github.com/users/jdavidlists/events{/privacy}","received_events_url":"https://api.github.com/users/jdavidlists/received_events","type":"User","site_admin":false},"labels":[{"id":276522256,"node_id":"MDU6TGFiZWwyNzY1MjIyNTY=","url":"https://api.github.com/repos/phan/phan/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-11-01T20:00:22Z","updated_at":"2018-11-01T22:42:02Z","closed_at":null,"author_association":"NONE","body":"After updating to the latest master (985270fdae66a8164d35cb3e287d73851d433738), $argv is coming up undeclared in some contexts.\r\n\r\nSample:\r\n\r\n```\r\n<?php\r\n$strCommand = array_shift( $argv );\r\necho \"Command: \", $strCommand, \"\\n\";\r\necho \"Args: \", join( \" \", $argv ), \"\\n\";\r\n```\r\n\r\nSample output:\r\n\r\n```\r\n$ phan argv.php\r\nargv.php:2 PhanUndeclaredVariable Variable $argv is undeclared\r\n```\r\n\r\nNote that the usage on line 4 does not produce a warning.  So far, all the examples I've found involve array_shift().  (This is a very common idiom in our codebase to get the command name for error messages and leave arguments intact for further processing.)\r\n"},"comment":{"url":"https://api.github.com/repos/phan/phan/issues/comments/435211559","html_url":"https://github.com/phan/phan/issues/2100#issuecomment-435211559","issue_url":"https://api.github.com/repos/phan/phan/issues/2100","id":435211559,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTIxMTU1OQ==","user":{"login":"jdavidlists","id":16322732,"node_id":"MDQ6VXNlcjE2MzIyNzMy","avatar_url":"https://avatars0.githubusercontent.com/u/16322732?v=4","gravatar_id":"","url":"https://api.github.com/users/jdavidlists","html_url":"https://github.com/jdavidlists","followers_url":"https://api.github.com/users/jdavidlists/followers","following_url":"https://api.github.com/users/jdavidlists/following{/other_user}","gists_url":"https://api.github.com/users/jdavidlists/gists{/gist_id}","starred_url":"https://api.github.com/users/jdavidlists/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdavidlists/subscriptions","organizations_url":"https://api.github.com/users/jdavidlists/orgs","repos_url":"https://api.github.com/users/jdavidlists/repos","events_url":"https://api.github.com/users/jdavidlists/events{/privacy}","received_events_url":"https://api.github.com/users/jdavidlists/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T22:42:02Z","updated_at":"2018-11-01T22:42:02Z","author_association":"NONE","body":"Your work on this project continues to amaze and impress!\r\n"}}
{"actor":{"display_login":"jdavidlists"}}