{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/comments/205935216","pull_request_review_id":141309775,"id":205935216,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNTkzNTIxNg==","diff_hunk":"@@ -46,23 +48,29 @@ public function getStart() : int {\n      */\n     public function getFullStart() : int {\n         foreach($this::CHILD_NAMES as $name) {\n+\n             if (($child = $this->$name) !== null) {\n+\n                 if (\\is_array($child)) {\n                     if(!isset($child[0])) {\n                         continue;\n                     }\n                     $child = $child[0];\n                 }\n+\n                 if ($child instanceof Node) {\n                     return $child->getFullStart();\n-                } elseif ($child instanceof Token) {\n+                }\n+\n+                if ($child instanceof Token) {","path":"src/Node.php","position":28,"original_position":28,"commit_id":"91452da8c3d66ea6852e03e872358bc5a21d3f33","original_commit_id":"91452da8c3d66ea6852e03e872358bc5a21d3f33","user":{"login":"dantleech","id":530801,"node_id":"MDQ6VXNlcjUzMDgwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/530801?v=4","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"body":"Not strictly necessary...","created_at":"2018-07-28T06:57:54Z","updated_at":"2018-07-28T07:00:02Z","html_url":"https://github.com/Microsoft/tolerant-php-parser/pull/252#discussion_r205935216","pull_request_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/252","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/comments/205935216"},"html":{"href":"https://github.com/Microsoft/tolerant-php-parser/pull/252#discussion_r205935216"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/252"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/252","id":204580466,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0NTgwNDY2","html_url":"https://github.com/Microsoft/tolerant-php-parser/pull/252","diff_url":"https://github.com/Microsoft/tolerant-php-parser/pull/252.diff","patch_url":"https://github.com/Microsoft/tolerant-php-parser/pull/252.patch","issue_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/issues/252","number":252,"state":"open","locked":false,"title":"Static analysis fixes","user":{"login":"dantleech","id":530801,"node_id":"MDQ6VXNlcjUzMDgwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/530801?v=4","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"body":"This PR introduces PHPStan and fixes the code up to level 2 (out of 7).j\r\n\r\n","created_at":"2018-07-28T06:57:10Z","updated_at":"2018-07-28T07:00:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"26163ba06457979fd198eee4490a9091b9b6595a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/252/commits","review_comments_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/252/comments","review_comment_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/issues/252/comments","statuses_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/statuses/91452da8c3d66ea6852e03e872358bc5a21d3f33","head":{"label":"dantleech:phpstan","ref":"phpstan","sha":"91452da8c3d66ea6852e03e872358bc5a21d3f33","user":{"login":"dantleech","id":530801,"node_id":"MDQ6VXNlcjUzMDgwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/530801?v=4","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"repo":{"id":94706698,"node_id":"MDEwOlJlcG9zaXRvcnk5NDcwNjY5OA==","name":"tolerant-php-parser","full_name":"dantleech/tolerant-php-parser","owner":{"login":"dantleech","id":530801,"node_id":"MDQ6VXNlcjUzMDgwMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/530801?v=4","gravatar_id":"","url":"https://api.github.com/users/dantleech","html_url":"https://github.com/dantleech","followers_url":"https://api.github.com/users/dantleech/followers","following_url":"https://api.github.com/users/dantleech/following{/other_user}","gists_url":"https://api.github.com/users/dantleech/gists{/gist_id}","starred_url":"https://api.github.com/users/dantleech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantleech/subscriptions","organizations_url":"https://api.github.com/users/dantleech/orgs","repos_url":"https://api.github.com/users/dantleech/repos","events_url":"https://api.github.com/users/dantleech/events{/privacy}","received_events_url":"https://api.github.com/users/dantleech/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dantleech/tolerant-php-parser","description":"An early-stage PHP parser designed for IDE usage scenarios.","fork":true,"url":"https://api.github.com/repos/dantleech/tolerant-php-parser","forks_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/forks","keys_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/teams","hooks_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/hooks","issue_events_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/issues/events{/number}","events_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/events","assignees_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/assignees{/user}","branches_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/branches{/branch}","tags_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/tags","blobs_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/languages","stargazers_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/stargazers","contributors_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/contributors","subscribers_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/subscribers","subscription_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/subscription","commits_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/contents/{+path}","compare_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/merges","archive_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/downloads","issues_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/issues{/number}","pulls_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/labels{/name}","releases_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/releases{/id}","deployments_url":"https://api.github.com/repos/dantleech/tolerant-php-parser/deployments","created_at":"2017-06-18T18:53:39Z","updated_at":"2017-06-18T18:53:43Z","pushed_at":"2018-07-28T06:57:10Z","git_url":"git://github.com/dantleech/tolerant-php-parser.git","ssh_url":"git@github.com:dantleech/tolerant-php-parser.git","clone_url":"https://github.com/dantleech/tolerant-php-parser.git","svn_url":"https://github.com/dantleech/tolerant-php-parser","homepage":"","size":3590,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"58814f104f8de9c96d295487b70c5734b9c77959","user":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":77562307,"node_id":"MDEwOlJlcG9zaXRvcnk3NzU2MjMwNw==","name":"tolerant-php-parser","full_name":"Microsoft/tolerant-php-parser","owner":{"login":"Microsoft","id":6154722,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYxNTQ3MjI=","avatar_url":"https://avatars2.githubusercontent.com/u/6154722?v=4","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/tolerant-php-parser","description":"An early-stage PHP parser designed for IDE usage scenarios.","fork":false,"url":"https://api.github.com/repos/Microsoft/tolerant-php-parser","forks_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/forks","keys_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/teams","hooks_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/events","assignees_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/tags","blobs_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/languages","stargazers_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/subscription","commits_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/merges","archive_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/downloads","issues_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/tolerant-php-parser/deployments","created_at":"2016-12-28T21:26:25Z","updated_at":"2018-07-28T00:47:18Z","pushed_at":"2018-07-28T06:57:11Z","git_url":"git://github.com/Microsoft/tolerant-php-parser.git","ssh_url":"git@github.com:Microsoft/tolerant-php-parser.git","clone_url":"https://github.com/Microsoft/tolerant-php-parser.git","svn_url":"https://github.com/Microsoft/tolerant-php-parser","homepage":"","size":3589,"stargazers_count":549,"watchers_count":549,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":46,"mirror_url":null,"archived":false,"open_issues_count":56,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":46,"open_issues":56,"watchers":549,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/252"},"html":{"href":"https://github.com/Microsoft/tolerant-php-parser/pull/252"},"issue":{"href":"https://api.github.com/repos/Microsoft/tolerant-php-parser/issues/252"},"comments":{"href":"https://api.github.com/repos/Microsoft/tolerant-php-parser/issues/252/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/252/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/tolerant-php-parser/pulls/252/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/tolerant-php-parser/statuses/91452da8c3d66ea6852e03e872358bc5a21d3f33"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"dantleech"}}