{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/getkirby/plugins/pulls/2","id":22602089,"html_url":"https://github.com/getkirby/plugins/pull/2","diff_url":"https://github.com/getkirby/plugins/pull/2.diff","patch_url":"https://github.com/getkirby/plugins/pull/2.patch","issue_url":"https://api.github.com/repos/getkirby/plugins/issues/2","number":2,"state":"closed","locked":false,"title":"Fix: Kirby closure needs default argument","user":{"login":"lekkerduidelijk","id":357924,"avatar_url":"https://avatars.githubusercontent.com/u/357924?v=3","gravatar_id":"","url":"https://api.github.com/users/lekkerduidelijk","html_url":"https://github.com/lekkerduidelijk","followers_url":"https://api.github.com/users/lekkerduidelijk/followers","following_url":"https://api.github.com/users/lekkerduidelijk/following{/other_user}","gists_url":"https://api.github.com/users/lekkerduidelijk/gists{/gist_id}","starred_url":"https://api.github.com/users/lekkerduidelijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lekkerduidelijk/subscriptions","organizations_url":"https://api.github.com/users/lekkerduidelijk/orgs","repos_url":"https://api.github.com/users/lekkerduidelijk/repos","events_url":"https://api.github.com/users/lekkerduidelijk/events{/privacy}","received_events_url":"https://api.github.com/users/lekkerduidelijk/received_events","type":"User","site_admin":false},"body":"When using the plugin like suggested:\r\n\r\n```\r\n<?php echo $page->text()->readingtime() ?>\r\n```\r\n\r\nThis error is returned:\r\n```\r\nMissing argument 2 for Kirby::{closure}()\r\n```\r\n\r\nI set the closure argument to an empty array to fix this.","created_at":"2014-10-11T10:21:40Z","updated_at":"2015-02-02T16:29:30Z","closed_at":"2015-02-02T16:29:30Z","merged_at":"2015-02-02T16:29:30Z","merge_commit_sha":"738cee28e98704dd476e481c37ce4d567f47a21d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/getkirby/plugins/pulls/2/commits","review_comments_url":"https://api.github.com/repos/getkirby/plugins/pulls/2/comments","review_comment_url":"https://api.github.com/repos/getkirby/plugins/pulls/comments/{number}","comments_url":"https://api.github.com/repos/getkirby/plugins/issues/2/comments","statuses_url":"https://api.github.com/repos/getkirby/plugins/statuses/ccb4f25ef015a5307f4f66557585a3d1121fdf66","head":{"label":"lekkerduidelijk:patch-1","ref":"patch-1","sha":"ccb4f25ef015a5307f4f66557585a3d1121fdf66","user":{"login":"lekkerduidelijk","id":357924,"avatar_url":"https://avatars.githubusercontent.com/u/357924?v=3","gravatar_id":"","url":"https://api.github.com/users/lekkerduidelijk","html_url":"https://github.com/lekkerduidelijk","followers_url":"https://api.github.com/users/lekkerduidelijk/followers","following_url":"https://api.github.com/users/lekkerduidelijk/following{/other_user}","gists_url":"https://api.github.com/users/lekkerduidelijk/gists{/gist_id}","starred_url":"https://api.github.com/users/lekkerduidelijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lekkerduidelijk/subscriptions","organizations_url":"https://api.github.com/users/lekkerduidelijk/orgs","repos_url":"https://api.github.com/users/lekkerduidelijk/repos","events_url":"https://api.github.com/users/lekkerduidelijk/events{/privacy}","received_events_url":"https://api.github.com/users/lekkerduidelijk/received_events","type":"User","site_admin":false},"repo":{"id":25073490,"name":"plugins","full_name":"lekkerduidelijk/plugins","owner":{"login":"lekkerduidelijk","id":357924,"avatar_url":"https://avatars.githubusercontent.com/u/357924?v=3","gravatar_id":"","url":"https://api.github.com/users/lekkerduidelijk","html_url":"https://github.com/lekkerduidelijk","followers_url":"https://api.github.com/users/lekkerduidelijk/followers","following_url":"https://api.github.com/users/lekkerduidelijk/following{/other_user}","gists_url":"https://api.github.com/users/lekkerduidelijk/gists{/gist_id}","starred_url":"https://api.github.com/users/lekkerduidelijk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lekkerduidelijk/subscriptions","organizations_url":"https://api.github.com/users/lekkerduidelijk/orgs","repos_url":"https://api.github.com/users/lekkerduidelijk/repos","events_url":"https://api.github.com/users/lekkerduidelijk/events{/privacy}","received_events_url":"https://api.github.com/users/lekkerduidelijk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lekkerduidelijk/plugins","description":"","fork":true,"url":"https://api.github.com/repos/lekkerduidelijk/plugins","forks_url":"https://api.github.com/repos/lekkerduidelijk/plugins/forks","keys_url":"https://api.github.com/repos/lekkerduidelijk/plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lekkerduidelijk/plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lekkerduidelijk/plugins/teams","hooks_url":"https://api.github.com/repos/lekkerduidelijk/plugins/hooks","issue_events_url":"https://api.github.com/repos/lekkerduidelijk/plugins/issues/events{/number}","events_url":"https://api.github.com/repos/lekkerduidelijk/plugins/events","assignees_url":"https://api.github.com/repos/lekkerduidelijk/plugins/assignees{/user}","branches_url":"https://api.github.com/repos/lekkerduidelijk/plugins/branches{/branch}","tags_url":"https://api.github.com/repos/lekkerduidelijk/plugins/tags","blobs_url":"https://api.github.com/repos/lekkerduidelijk/plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lekkerduidelijk/plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lekkerduidelijk/plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/lekkerduidelijk/plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lekkerduidelijk/plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/lekkerduidelijk/plugins/languages","stargazers_url":"https://api.github.com/repos/lekkerduidelijk/plugins/stargazers","contributors_url":"https://api.github.com/repos/lekkerduidelijk/plugins/contributors","subscribers_url":"https://api.github.com/repos/lekkerduidelijk/plugins/subscribers","subscription_url":"https://api.github.com/repos/lekkerduidelijk/plugins/subscription","commits_url":"https://api.github.com/repos/lekkerduidelijk/plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/lekkerduidelijk/plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/lekkerduidelijk/plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/lekkerduidelijk/plugins/issues/comments/{number}","contents_url":"https://api.github.com/repos/lekkerduidelijk/plugins/contents/{+path}","compare_url":"https://api.github.com/repos/lekkerduidelijk/plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lekkerduidelijk/plugins/merges","archive_url":"https://api.github.com/repos/lekkerduidelijk/plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lekkerduidelijk/plugins/downloads","issues_url":"https://api.github.com/repos/lekkerduidelijk/plugins/issues{/number}","pulls_url":"https://api.github.com/repos/lekkerduidelijk/plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/lekkerduidelijk/plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/lekkerduidelijk/plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lekkerduidelijk/plugins/labels{/name}","releases_url":"https://api.github.com/repos/lekkerduidelijk/plugins/releases{/id}","created_at":"2014-10-11T10:17:51Z","updated_at":"2014-10-07T14:32:01Z","pushed_at":"2014-10-11T10:19:08Z","git_url":"git://github.com/lekkerduidelijk/plugins.git","ssh_url":"git@github.com:lekkerduidelijk/plugins.git","clone_url":"https://github.com/lekkerduidelijk/plugins.git","svn_url":"https://github.com/lekkerduidelijk/plugins","homepage":null,"size":106,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"getkirby:master","ref":"master","sha":"15e398f78f85fb5d9c2f59515db57816ca0198e6","user":{"login":"getkirby","id":6985611,"avatar_url":"https://avatars.githubusercontent.com/u/6985611?v=3","gravatar_id":"","url":"https://api.github.com/users/getkirby","html_url":"https://github.com/getkirby","followers_url":"https://api.github.com/users/getkirby/followers","following_url":"https://api.github.com/users/getkirby/following{/other_user}","gists_url":"https://api.github.com/users/getkirby/gists{/gist_id}","starred_url":"https://api.github.com/users/getkirby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getkirby/subscriptions","organizations_url":"https://api.github.com/users/getkirby/orgs","repos_url":"https://api.github.com/users/getkirby/repos","events_url":"https://api.github.com/users/getkirby/events{/privacy}","received_events_url":"https://api.github.com/users/getkirby/received_events","type":"Organization","site_admin":false},"repo":{"id":24818637,"name":"plugins","full_name":"getkirby/plugins","owner":{"login":"getkirby","id":6985611,"avatar_url":"https://avatars.githubusercontent.com/u/6985611?v=3","gravatar_id":"","url":"https://api.github.com/users/getkirby","html_url":"https://github.com/getkirby","followers_url":"https://api.github.com/users/getkirby/followers","following_url":"https://api.github.com/users/getkirby/following{/other_user}","gists_url":"https://api.github.com/users/getkirby/gists{/gist_id}","starred_url":"https://api.github.com/users/getkirby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getkirby/subscriptions","organizations_url":"https://api.github.com/users/getkirby/orgs","repos_url":"https://api.github.com/users/getkirby/repos","events_url":"https://api.github.com/users/getkirby/events{/privacy}","received_events_url":"https://api.github.com/users/getkirby/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/getkirby/plugins","description":"","fork":false,"url":"https://api.github.com/repos/getkirby/plugins","forks_url":"https://api.github.com/repos/getkirby/plugins/forks","keys_url":"https://api.github.com/repos/getkirby/plugins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getkirby/plugins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getkirby/plugins/teams","hooks_url":"https://api.github.com/repos/getkirby/plugins/hooks","issue_events_url":"https://api.github.com/repos/getkirby/plugins/issues/events{/number}","events_url":"https://api.github.com/repos/getkirby/plugins/events","assignees_url":"https://api.github.com/repos/getkirby/plugins/assignees{/user}","branches_url":"https://api.github.com/repos/getkirby/plugins/branches{/branch}","tags_url":"https://api.github.com/repos/getkirby/plugins/tags","blobs_url":"https://api.github.com/repos/getkirby/plugins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getkirby/plugins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getkirby/plugins/git/refs{/sha}","trees_url":"https://api.github.com/repos/getkirby/plugins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getkirby/plugins/statuses/{sha}","languages_url":"https://api.github.com/repos/getkirby/plugins/languages","stargazers_url":"https://api.github.com/repos/getkirby/plugins/stargazers","contributors_url":"https://api.github.com/repos/getkirby/plugins/contributors","subscribers_url":"https://api.github.com/repos/getkirby/plugins/subscribers","subscription_url":"https://api.github.com/repos/getkirby/plugins/subscription","commits_url":"https://api.github.com/repos/getkirby/plugins/commits{/sha}","git_commits_url":"https://api.github.com/repos/getkirby/plugins/git/commits{/sha}","comments_url":"https://api.github.com/repos/getkirby/plugins/comments{/number}","issue_comment_url":"https://api.github.com/repos/getkirby/plugins/issues/comments/{number}","contents_url":"https://api.github.com/repos/getkirby/plugins/contents/{+path}","compare_url":"https://api.github.com/repos/getkirby/plugins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getkirby/plugins/merges","archive_url":"https://api.github.com/repos/getkirby/plugins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getkirby/plugins/downloads","issues_url":"https://api.github.com/repos/getkirby/plugins/issues{/number}","pulls_url":"https://api.github.com/repos/getkirby/plugins/pulls{/number}","milestones_url":"https://api.github.com/repos/getkirby/plugins/milestones{/number}","notifications_url":"https://api.github.com/repos/getkirby/plugins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getkirby/plugins/labels{/name}","releases_url":"https://api.github.com/repos/getkirby/plugins/releases{/id}","created_at":"2014-10-05T15:21:54Z","updated_at":"2015-02-02T16:29:12Z","pushed_at":"2015-02-02T16:29:30Z","git_url":"git://github.com/getkirby/plugins.git","ssh_url":"git@github.com:getkirby/plugins.git","clone_url":"https://github.com/getkirby/plugins.git","svn_url":"https://github.com/getkirby/plugins","homepage":null,"size":241,"stargazers_count":16,"watchers_count":16,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":4,"forks":9,"open_issues":4,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getkirby/plugins/pulls/2"},"html":{"href":"https://github.com/getkirby/plugins/pull/2"},"issue":{"href":"https://api.github.com/repos/getkirby/plugins/issues/2"},"comments":{"href":"https://api.github.com/repos/getkirby/plugins/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/getkirby/plugins/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/getkirby/plugins/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/getkirby/plugins/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/getkirby/plugins/statuses/ccb4f25ef015a5307f4f66557585a3d1121fdf66"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"bastianallgeier","id":24532,"avatar_url":"https://avatars.githubusercontent.com/u/24532?v=3","gravatar_id":"","url":"https://api.github.com/users/bastianallgeier","html_url":"https://github.com/bastianallgeier","followers_url":"https://api.github.com/users/bastianallgeier/followers","following_url":"https://api.github.com/users/bastianallgeier/following{/other_user}","gists_url":"https://api.github.com/users/bastianallgeier/gists{/gist_id}","starred_url":"https://api.github.com/users/bastianallgeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bastianallgeier/subscriptions","organizations_url":"https://api.github.com/users/bastianallgeier/orgs","repos_url":"https://api.github.com/users/bastianallgeier/repos","events_url":"https://api.github.com/users/bastianallgeier/events{/privacy}","received_events_url":"https://api.github.com/users/bastianallgeier/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":2,"changed_files":1}}