{"action":"created","comment":{"url":"https://api.github.com/repos/rectorphp/rector/pulls/comments/227016639","pull_request_review_id":166962373,"id":227016639,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzAxNjYzOQ==","diff_hunk":"@@ -27,6 +27,17 @@ final class MyClass\n         return in_array($something, $items, true);\n     }\n \n+    public function foreachToInArrayWithMethodCall() : bool\n+    {\n+        foreach ($items as $item) {\n+            if ($something === $item->method()) {","path":"packages/CodeQuality/tests/Rector/Foreach_/ForeachToInArrayRector/Correct/correct.php.inc","position":33,"original_position":7,"commit_id":"5b2e9fd655f41834190af3b2a8143b33910d5883","original_commit_id":"5b2e9fd655f41834190af3b2a8143b33910d5883","user":{"login":"carusogabriel","id":16328050,"node_id":"MDQ6VXNlcjE2MzI4MDUw","avatar_url":"https://avatars3.githubusercontent.com/u/16328050?v=4","gravatar_id":"","url":"https://api.github.com/users/carusogabriel","html_url":"https://github.com/carusogabriel","followers_url":"https://api.github.com/users/carusogabriel/followers","following_url":"https://api.github.com/users/carusogabriel/following{/other_user}","gists_url":"https://api.github.com/users/carusogabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/carusogabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carusogabriel/subscriptions","organizations_url":"https://api.github.com/users/carusogabriel/orgs","repos_url":"https://api.github.com/users/carusogabriel/repos","events_url":"https://api.github.com/users/carusogabriel/events{/privacy}","received_events_url":"https://api.github.com/users/carusogabriel/received_events","type":"User","site_admin":false},"body":"@TomasVotruba This one I can't figure out how to solve :scream_cat: ","created_at":"2018-10-22T15:07:43Z","updated_at":"2018-10-22T15:07:43Z","html_url":"https://github.com/rectorphp/rector/pull/678#discussion_r227016639","pull_request_url":"https://api.github.com/repos/rectorphp/rector/pulls/678","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/comments/227016639"},"html":{"href":"https://github.com/rectorphp/rector/pull/678#discussion_r227016639"},"pull_request":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/678"}}},"pull_request":{"url":"https://api.github.com/repos/rectorphp/rector/pulls/678","id":222575936,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNTc1OTM2","html_url":"https://github.com/rectorphp/rector/pull/678","diff_url":"https://github.com/rectorphp/rector/pull/678.diff","patch_url":"https://github.com/rectorphp/rector/pull/678.patch","issue_url":"https://api.github.com/repos/rectorphp/rector/issues/678","number":678,"state":"open","locked":false,"title":"Create ForeachToInArrayRector","user":{"login":"carusogabriel","id":16328050,"node_id":"MDQ6VXNlcjE2MzI4MDUw","avatar_url":"https://avatars3.githubusercontent.com/u/16328050?v=4","gravatar_id":"","url":"https://api.github.com/users/carusogabriel","html_url":"https://github.com/carusogabriel","followers_url":"https://api.github.com/users/carusogabriel/followers","following_url":"https://api.github.com/users/carusogabriel/following{/other_user}","gists_url":"https://api.github.com/users/carusogabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/carusogabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carusogabriel/subscriptions","organizations_url":"https://api.github.com/users/carusogabriel/orgs","repos_url":"https://api.github.com/users/carusogabriel/repos","events_url":"https://api.github.com/users/carusogabriel/events{/privacy}","received_events_url":"https://api.github.com/users/carusogabriel/received_events","type":"User","site_admin":false},"body":"Ref: https://github.com/rectorphp/rector/issues/424#issue-316222646","created_at":"2018-10-12T20:19:54Z","updated_at":"2018-10-22T15:07:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"efe26a5328aa5aa1e2d55b43e25b523a628fc258","assignee":{"login":"carusogabriel","id":16328050,"node_id":"MDQ6VXNlcjE2MzI4MDUw","avatar_url":"https://avatars3.githubusercontent.com/u/16328050?v=4","gravatar_id":"","url":"https://api.github.com/users/carusogabriel","html_url":"https://github.com/carusogabriel","followers_url":"https://api.github.com/users/carusogabriel/followers","following_url":"https://api.github.com/users/carusogabriel/following{/other_user}","gists_url":"https://api.github.com/users/carusogabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/carusogabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carusogabriel/subscriptions","organizations_url":"https://api.github.com/users/carusogabriel/orgs","repos_url":"https://api.github.com/users/carusogabriel/repos","events_url":"https://api.github.com/users/carusogabriel/events{/privacy}","received_events_url":"https://api.github.com/users/carusogabriel/received_events","type":"User","site_admin":false},"assignees":[{"login":"carusogabriel","id":16328050,"node_id":"MDQ6VXNlcjE2MzI4MDUw","avatar_url":"https://avatars3.githubusercontent.com/u/16328050?v=4","gravatar_id":"","url":"https://api.github.com/users/carusogabriel","html_url":"https://github.com/carusogabriel","followers_url":"https://api.github.com/users/carusogabriel/followers","following_url":"https://api.github.com/users/carusogabriel/following{/other_user}","gists_url":"https://api.github.com/users/carusogabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/carusogabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carusogabriel/subscriptions","organizations_url":"https://api.github.com/users/carusogabriel/orgs","repos_url":"https://api.github.com/users/carusogabriel/repos","events_url":"https://api.github.com/users/carusogabriel/events{/privacy}","received_events_url":"https://api.github.com/users/carusogabriel/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/rectorphp/rector/pulls/678/commits","review_comments_url":"https://api.github.com/repos/rectorphp/rector/pulls/678/comments","review_comment_url":"https://api.github.com/repos/rectorphp/rector/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rectorphp/rector/issues/678/comments","statuses_url":"https://api.github.com/repos/rectorphp/rector/statuses/5b2e9fd655f41834190af3b2a8143b33910d5883","head":{"label":"rectorphp:foreach-in-array-rector","ref":"foreach-in-array-rector","sha":"5b2e9fd655f41834190af3b2a8143b33910d5883","user":{"login":"rectorphp","id":32097581,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMDk3NTgx","avatar_url":"https://avatars1.githubusercontent.com/u/32097581?v=4","gravatar_id":"","url":"https://api.github.com/users/rectorphp","html_url":"https://github.com/rectorphp","followers_url":"https://api.github.com/users/rectorphp/followers","following_url":"https://api.github.com/users/rectorphp/following{/other_user}","gists_url":"https://api.github.com/users/rectorphp/gists{/gist_id}","starred_url":"https://api.github.com/users/rectorphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rectorphp/subscriptions","organizations_url":"https://api.github.com/users/rectorphp/orgs","repos_url":"https://api.github.com/users/rectorphp/repos","events_url":"https://api.github.com/users/rectorphp/events{/privacy}","received_events_url":"https://api.github.com/users/rectorphp/received_events","type":"Organization","site_admin":false},"repo":{"id":97311017,"node_id":"MDEwOlJlcG9zaXRvcnk5NzMxMTAxNw==","name":"rector","full_name":"rectorphp/rector","private":false,"owner":{"login":"rectorphp","id":32097581,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMDk3NTgx","avatar_url":"https://avatars1.githubusercontent.com/u/32097581?v=4","gravatar_id":"","url":"https://api.github.com/users/rectorphp","html_url":"https://github.com/rectorphp","followers_url":"https://api.github.com/users/rectorphp/followers","following_url":"https://api.github.com/users/rectorphp/following{/other_user}","gists_url":"https://api.github.com/users/rectorphp/gists{/gist_id}","starred_url":"https://api.github.com/users/rectorphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rectorphp/subscriptions","organizations_url":"https://api.github.com/users/rectorphp/orgs","repos_url":"https://api.github.com/users/rectorphp/repos","events_url":"https://api.github.com/users/rectorphp/events{/privacy}","received_events_url":"https://api.github.com/users/rectorphp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rectorphp/rector","description":"Instant Upgrades for PHP Applications ","fork":false,"url":"https://api.github.com/repos/rectorphp/rector","forks_url":"https://api.github.com/repos/rectorphp/rector/forks","keys_url":"https://api.github.com/repos/rectorphp/rector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rectorphp/rector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rectorphp/rector/teams","hooks_url":"https://api.github.com/repos/rectorphp/rector/hooks","issue_events_url":"https://api.github.com/repos/rectorphp/rector/issues/events{/number}","events_url":"https://api.github.com/repos/rectorphp/rector/events","assignees_url":"https://api.github.com/repos/rectorphp/rector/assignees{/user}","branches_url":"https://api.github.com/repos/rectorphp/rector/branches{/branch}","tags_url":"https://api.github.com/repos/rectorphp/rector/tags","blobs_url":"https://api.github.com/repos/rectorphp/rector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rectorphp/rector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rectorphp/rector/git/refs{/sha}","trees_url":"https://api.github.com/repos/rectorphp/rector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rectorphp/rector/statuses/{sha}","languages_url":"https://api.github.com/repos/rectorphp/rector/languages","stargazers_url":"https://api.github.com/repos/rectorphp/rector/stargazers","contributors_url":"https://api.github.com/repos/rectorphp/rector/contributors","subscribers_url":"https://api.github.com/repos/rectorphp/rector/subscribers","subscription_url":"https://api.github.com/repos/rectorphp/rector/subscription","commits_url":"https://api.github.com/repos/rectorphp/rector/commits{/sha}","git_commits_url":"https://api.github.com/repos/rectorphp/rector/git/commits{/sha}","comments_url":"https://api.github.com/repos/rectorphp/rector/comments{/number}","issue_comment_url":"https://api.github.com/repos/rectorphp/rector/issues/comments{/number}","contents_url":"https://api.github.com/repos/rectorphp/rector/contents/{+path}","compare_url":"https://api.github.com/repos/rectorphp/rector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rectorphp/rector/merges","archive_url":"https://api.github.com/repos/rectorphp/rector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rectorphp/rector/downloads","issues_url":"https://api.github.com/repos/rectorphp/rector/issues{/number}","pulls_url":"https://api.github.com/repos/rectorphp/rector/pulls{/number}","milestones_url":"https://api.github.com/repos/rectorphp/rector/milestones{/number}","notifications_url":"https://api.github.com/repos/rectorphp/rector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rectorphp/rector/labels{/name}","releases_url":"https://api.github.com/repos/rectorphp/rector/releases{/id}","deployments_url":"https://api.github.com/repos/rectorphp/rector/deployments","created_at":"2017-07-15T11:16:02Z","updated_at":"2018-10-22T12:15:01Z","pushed_at":"2018-10-22T15:01:54Z","git_url":"git://github.com/rectorphp/rector.git","ssh_url":"git@github.com:rectorphp/rector.git","clone_url":"https://github.com/rectorphp/rector.git","svn_url":"https://github.com/rectorphp/rector","homepage":"https://www.tomasvotruba.cz/blog/2018/02/19/rector-part-1-what-and-how/","size":7945,"stargazers_count":456,"watchers_count":456,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":23,"open_issues":15,"watchers":456,"default_branch":"master"}},"base":{"label":"rectorphp:master","ref":"master","sha":"b154d904f01a6051c156d38b8d93d243e3df2292","user":{"login":"rectorphp","id":32097581,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMDk3NTgx","avatar_url":"https://avatars1.githubusercontent.com/u/32097581?v=4","gravatar_id":"","url":"https://api.github.com/users/rectorphp","html_url":"https://github.com/rectorphp","followers_url":"https://api.github.com/users/rectorphp/followers","following_url":"https://api.github.com/users/rectorphp/following{/other_user}","gists_url":"https://api.github.com/users/rectorphp/gists{/gist_id}","starred_url":"https://api.github.com/users/rectorphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rectorphp/subscriptions","organizations_url":"https://api.github.com/users/rectorphp/orgs","repos_url":"https://api.github.com/users/rectorphp/repos","events_url":"https://api.github.com/users/rectorphp/events{/privacy}","received_events_url":"https://api.github.com/users/rectorphp/received_events","type":"Organization","site_admin":false},"repo":{"id":97311017,"node_id":"MDEwOlJlcG9zaXRvcnk5NzMxMTAxNw==","name":"rector","full_name":"rectorphp/rector","private":false,"owner":{"login":"rectorphp","id":32097581,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMDk3NTgx","avatar_url":"https://avatars1.githubusercontent.com/u/32097581?v=4","gravatar_id":"","url":"https://api.github.com/users/rectorphp","html_url":"https://github.com/rectorphp","followers_url":"https://api.github.com/users/rectorphp/followers","following_url":"https://api.github.com/users/rectorphp/following{/other_user}","gists_url":"https://api.github.com/users/rectorphp/gists{/gist_id}","starred_url":"https://api.github.com/users/rectorphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rectorphp/subscriptions","organizations_url":"https://api.github.com/users/rectorphp/orgs","repos_url":"https://api.github.com/users/rectorphp/repos","events_url":"https://api.github.com/users/rectorphp/events{/privacy}","received_events_url":"https://api.github.com/users/rectorphp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/rectorphp/rector","description":"Instant Upgrades for PHP Applications ","fork":false,"url":"https://api.github.com/repos/rectorphp/rector","forks_url":"https://api.github.com/repos/rectorphp/rector/forks","keys_url":"https://api.github.com/repos/rectorphp/rector/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rectorphp/rector/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rectorphp/rector/teams","hooks_url":"https://api.github.com/repos/rectorphp/rector/hooks","issue_events_url":"https://api.github.com/repos/rectorphp/rector/issues/events{/number}","events_url":"https://api.github.com/repos/rectorphp/rector/events","assignees_url":"https://api.github.com/repos/rectorphp/rector/assignees{/user}","branches_url":"https://api.github.com/repos/rectorphp/rector/branches{/branch}","tags_url":"https://api.github.com/repos/rectorphp/rector/tags","blobs_url":"https://api.github.com/repos/rectorphp/rector/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rectorphp/rector/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rectorphp/rector/git/refs{/sha}","trees_url":"https://api.github.com/repos/rectorphp/rector/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rectorphp/rector/statuses/{sha}","languages_url":"https://api.github.com/repos/rectorphp/rector/languages","stargazers_url":"https://api.github.com/repos/rectorphp/rector/stargazers","contributors_url":"https://api.github.com/repos/rectorphp/rector/contributors","subscribers_url":"https://api.github.com/repos/rectorphp/rector/subscribers","subscription_url":"https://api.github.com/repos/rectorphp/rector/subscription","commits_url":"https://api.github.com/repos/rectorphp/rector/commits{/sha}","git_commits_url":"https://api.github.com/repos/rectorphp/rector/git/commits{/sha}","comments_url":"https://api.github.com/repos/rectorphp/rector/comments{/number}","issue_comment_url":"https://api.github.com/repos/rectorphp/rector/issues/comments{/number}","contents_url":"https://api.github.com/repos/rectorphp/rector/contents/{+path}","compare_url":"https://api.github.com/repos/rectorphp/rector/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rectorphp/rector/merges","archive_url":"https://api.github.com/repos/rectorphp/rector/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rectorphp/rector/downloads","issues_url":"https://api.github.com/repos/rectorphp/rector/issues{/number}","pulls_url":"https://api.github.com/repos/rectorphp/rector/pulls{/number}","milestones_url":"https://api.github.com/repos/rectorphp/rector/milestones{/number}","notifications_url":"https://api.github.com/repos/rectorphp/rector/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rectorphp/rector/labels{/name}","releases_url":"https://api.github.com/repos/rectorphp/rector/releases{/id}","deployments_url":"https://api.github.com/repos/rectorphp/rector/deployments","created_at":"2017-07-15T11:16:02Z","updated_at":"2018-10-22T12:15:01Z","pushed_at":"2018-10-22T15:01:54Z","git_url":"git://github.com/rectorphp/rector.git","ssh_url":"git@github.com:rectorphp/rector.git","clone_url":"https://github.com/rectorphp/rector.git","svn_url":"https://github.com/rectorphp/rector","homepage":"https://www.tomasvotruba.cz/blog/2018/02/19/rector-part-1-what-and-how/","size":7945,"stargazers_count":456,"watchers_count":456,"language":"PHP","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":23,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":23,"open_issues":15,"watchers":456,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/678"},"html":{"href":"https://github.com/rectorphp/rector/pull/678"},"issue":{"href":"https://api.github.com/repos/rectorphp/rector/issues/678"},"comments":{"href":"https://api.github.com/repos/rectorphp/rector/issues/678/comments"},"review_comments":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/678/comments"},"review_comment":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rectorphp/rector/pulls/678/commits"},"statuses":{"href":"https://api.github.com/repos/rectorphp/rector/statuses/5b2e9fd655f41834190af3b2a8143b33910d5883"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"carusogabriel"}}