{"action":"closed","number":13,"pull_request":{"url":"https://api.github.com/repos/wikimedia/Assert/pulls/13","id":63869824,"html_url":"https://github.com/wikimedia/Assert/pull/13","diff_url":"https://github.com/wikimedia/Assert/pull/13.diff","patch_url":"https://github.com/wikimedia/Assert/pull/13.patch","issue_url":"https://api.github.com/repos/wikimedia/Assert/issues/13","number":13,"state":"closed","locked":false,"title":"Add Traversable as a pseudo-type","user":{"login":"thiemowmde","id":6576639,"avatar_url":"https://avatars.githubusercontent.com/u/6576639?v=3","gravatar_id":"","url":"https://api.github.com/users/thiemowmde","html_url":"https://github.com/thiemowmde","followers_url":"https://api.github.com/users/thiemowmde/followers","following_url":"https://api.github.com/users/thiemowmde/following{/other_user}","gists_url":"https://api.github.com/users/thiemowmde/gists{/gist_id}","starred_url":"https://api.github.com/users/thiemowmde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiemowmde/subscriptions","organizations_url":"https://api.github.com/users/thiemowmde/orgs","repos_url":"https://api.github.com/users/thiemowmde/repos","events_url":"https://api.github.com/users/thiemowmde/events{/privacy}","received_events_url":"https://api.github.com/users/thiemowmde/received_events","type":"User","site_admin":false},"body":"`Traversable` is a marker interface in PHP's core and already supported. But there is no common type to check if something is either an array (all arrays are traversable using `foreach`) or an object actually implementing the marker-interface.\r\n\r\nI'm also adding a lot more test cases. This is also split as #14 and can be merged independently.\r\n\r\nThis fixes #5.","created_at":"2016-03-23T11:51:08Z","updated_at":"2016-10-17T10:30:49Z","closed_at":"2016-10-17T10:30:49Z","merged_at":null,"merge_commit_sha":"9c4d8c54c1293a96fd606fb64455fe7fcfde3a20","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/wikimedia/Assert/pulls/13/commits","review_comments_url":"https://api.github.com/repos/wikimedia/Assert/pulls/13/comments","review_comment_url":"https://api.github.com/repos/wikimedia/Assert/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wikimedia/Assert/issues/13/comments","statuses_url":"https://api.github.com/repos/wikimedia/Assert/statuses/56b5b98785612b3b559a77ba9cc18a8a1043710d","head":{"label":"wikimedia:traversable","ref":"traversable","sha":"56b5b98785612b3b559a77ba9cc18a8a1043710d","user":{"login":"wikimedia","id":56668,"avatar_url":"https://avatars.githubusercontent.com/u/56668?v=3","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"repo":{"id":22393970,"name":"Assert","full_name":"wikimedia/Assert","owner":{"login":"wikimedia","id":56668,"avatar_url":"https://avatars.githubusercontent.com/u/56668?v=3","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wikimedia/Assert","description":"GitHub mirror of the MediaWiki Assert library - our actual code is hosted with Gerrit at https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/libs/Assert (please see https://www.mediawiki.org/wiki/Developer_access for contributing)","fork":false,"url":"https://api.github.com/repos/wikimedia/Assert","forks_url":"https://api.github.com/repos/wikimedia/Assert/forks","keys_url":"https://api.github.com/repos/wikimedia/Assert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wikimedia/Assert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wikimedia/Assert/teams","hooks_url":"https://api.github.com/repos/wikimedia/Assert/hooks","issue_events_url":"https://api.github.com/repos/wikimedia/Assert/issues/events{/number}","events_url":"https://api.github.com/repos/wikimedia/Assert/events","assignees_url":"https://api.github.com/repos/wikimedia/Assert/assignees{/user}","branches_url":"https://api.github.com/repos/wikimedia/Assert/branches{/branch}","tags_url":"https://api.github.com/repos/wikimedia/Assert/tags","blobs_url":"https://api.github.com/repos/wikimedia/Assert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wikimedia/Assert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wikimedia/Assert/git/refs{/sha}","trees_url":"https://api.github.com/repos/wikimedia/Assert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wikimedia/Assert/statuses/{sha}","languages_url":"https://api.github.com/repos/wikimedia/Assert/languages","stargazers_url":"https://api.github.com/repos/wikimedia/Assert/stargazers","contributors_url":"https://api.github.com/repos/wikimedia/Assert/contributors","subscribers_url":"https://api.github.com/repos/wikimedia/Assert/subscribers","subscription_url":"https://api.github.com/repos/wikimedia/Assert/subscription","commits_url":"https://api.github.com/repos/wikimedia/Assert/commits{/sha}","git_commits_url":"https://api.github.com/repos/wikimedia/Assert/git/commits{/sha}","comments_url":"https://api.github.com/repos/wikimedia/Assert/comments{/number}","issue_comment_url":"https://api.github.com/repos/wikimedia/Assert/issues/comments{/number}","contents_url":"https://api.github.com/repos/wikimedia/Assert/contents/{+path}","compare_url":"https://api.github.com/repos/wikimedia/Assert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wikimedia/Assert/merges","archive_url":"https://api.github.com/repos/wikimedia/Assert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wikimedia/Assert/downloads","issues_url":"https://api.github.com/repos/wikimedia/Assert/issues{/number}","pulls_url":"https://api.github.com/repos/wikimedia/Assert/pulls{/number}","milestones_url":"https://api.github.com/repos/wikimedia/Assert/milestones{/number}","notifications_url":"https://api.github.com/repos/wikimedia/Assert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wikimedia/Assert/labels{/name}","releases_url":"https://api.github.com/repos/wikimedia/Assert/releases{/id}","deployments_url":"https://api.github.com/repos/wikimedia/Assert/deployments","created_at":"2014-07-29T20:14:09Z","updated_at":"2016-09-23T14:08:31Z","pushed_at":"2016-09-21T18:58:05Z","git_url":"git://github.com/wikimedia/Assert.git","ssh_url":"git@github.com:wikimedia/Assert.git","clone_url":"https://github.com/wikimedia/Assert.git","svn_url":"https://github.com/wikimedia/Assert","homepage":"","size":31,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":5,"default_branch":"master"}},"base":{"label":"wikimedia:master","ref":"master","sha":"055e23c4273ab77e896ec8041f24dbd5e1d4694f","user":{"login":"wikimedia","id":56668,"avatar_url":"https://avatars.githubusercontent.com/u/56668?v=3","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"repo":{"id":22393970,"name":"Assert","full_name":"wikimedia/Assert","owner":{"login":"wikimedia","id":56668,"avatar_url":"https://avatars.githubusercontent.com/u/56668?v=3","gravatar_id":"","url":"https://api.github.com/users/wikimedia","html_url":"https://github.com/wikimedia","followers_url":"https://api.github.com/users/wikimedia/followers","following_url":"https://api.github.com/users/wikimedia/following{/other_user}","gists_url":"https://api.github.com/users/wikimedia/gists{/gist_id}","starred_url":"https://api.github.com/users/wikimedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wikimedia/subscriptions","organizations_url":"https://api.github.com/users/wikimedia/orgs","repos_url":"https://api.github.com/users/wikimedia/repos","events_url":"https://api.github.com/users/wikimedia/events{/privacy}","received_events_url":"https://api.github.com/users/wikimedia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wikimedia/Assert","description":"GitHub mirror of the MediaWiki Assert library - our actual code is hosted with Gerrit at https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/libs/Assert (please see https://www.mediawiki.org/wiki/Developer_access for contributing)","fork":false,"url":"https://api.github.com/repos/wikimedia/Assert","forks_url":"https://api.github.com/repos/wikimedia/Assert/forks","keys_url":"https://api.github.com/repos/wikimedia/Assert/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wikimedia/Assert/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wikimedia/Assert/teams","hooks_url":"https://api.github.com/repos/wikimedia/Assert/hooks","issue_events_url":"https://api.github.com/repos/wikimedia/Assert/issues/events{/number}","events_url":"https://api.github.com/repos/wikimedia/Assert/events","assignees_url":"https://api.github.com/repos/wikimedia/Assert/assignees{/user}","branches_url":"https://api.github.com/repos/wikimedia/Assert/branches{/branch}","tags_url":"https://api.github.com/repos/wikimedia/Assert/tags","blobs_url":"https://api.github.com/repos/wikimedia/Assert/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wikimedia/Assert/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wikimedia/Assert/git/refs{/sha}","trees_url":"https://api.github.com/repos/wikimedia/Assert/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wikimedia/Assert/statuses/{sha}","languages_url":"https://api.github.com/repos/wikimedia/Assert/languages","stargazers_url":"https://api.github.com/repos/wikimedia/Assert/stargazers","contributors_url":"https://api.github.com/repos/wikimedia/Assert/contributors","subscribers_url":"https://api.github.com/repos/wikimedia/Assert/subscribers","subscription_url":"https://api.github.com/repos/wikimedia/Assert/subscription","commits_url":"https://api.github.com/repos/wikimedia/Assert/commits{/sha}","git_commits_url":"https://api.github.com/repos/wikimedia/Assert/git/commits{/sha}","comments_url":"https://api.github.com/repos/wikimedia/Assert/comments{/number}","issue_comment_url":"https://api.github.com/repos/wikimedia/Assert/issues/comments{/number}","contents_url":"https://api.github.com/repos/wikimedia/Assert/contents/{+path}","compare_url":"https://api.github.com/repos/wikimedia/Assert/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wikimedia/Assert/merges","archive_url":"https://api.github.com/repos/wikimedia/Assert/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wikimedia/Assert/downloads","issues_url":"https://api.github.com/repos/wikimedia/Assert/issues{/number}","pulls_url":"https://api.github.com/repos/wikimedia/Assert/pulls{/number}","milestones_url":"https://api.github.com/repos/wikimedia/Assert/milestones{/number}","notifications_url":"https://api.github.com/repos/wikimedia/Assert/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wikimedia/Assert/labels{/name}","releases_url":"https://api.github.com/repos/wikimedia/Assert/releases{/id}","deployments_url":"https://api.github.com/repos/wikimedia/Assert/deployments","created_at":"2014-07-29T20:14:09Z","updated_at":"2016-09-23T14:08:31Z","pushed_at":"2016-09-21T18:58:05Z","git_url":"git://github.com/wikimedia/Assert.git","ssh_url":"git@github.com:wikimedia/Assert.git","clone_url":"https://github.com/wikimedia/Assert.git","svn_url":"https://github.com/wikimedia/Assert","homepage":"","size":31,"stargazers_count":5,"watchers_count":5,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":4,"forks":2,"open_issues":4,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wikimedia/Assert/pulls/13"},"html":{"href":"https://github.com/wikimedia/Assert/pull/13"},"issue":{"href":"https://api.github.com/repos/wikimedia/Assert/issues/13"},"comments":{"href":"https://api.github.com/repos/wikimedia/Assert/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/wikimedia/Assert/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/wikimedia/Assert/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wikimedia/Assert/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/wikimedia/Assert/statuses/56b5b98785612b3b559a77ba9cc18a8a1043710d"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":42,"deletions":8,"changed_files":2}}
{"actor":{"display_login":"thiemowmde"}}