{"action":"opened","number":1212,"pull_request":{"url":"https://api.github.com/repos/slimphp/Slim/pulls/1212","id":34687191,"html_url":"https://github.com/slimphp/Slim/pull/1212","diff_url":"https://github.com/slimphp/Slim/pull/1212.diff","patch_url":"https://github.com/slimphp/Slim/pull/1212.patch","issue_url":"https://api.github.com/repos/slimphp/Slim/issues/1212","number":1212,"state":"open","locked":false,"title":"allow other callables","user":{"login":"pine3ree","id":3229979,"avatar_url":"https://avatars.githubusercontent.com/u/3229979?v=3","gravatar_id":"","url":"https://api.github.com/users/pine3ree","html_url":"https://github.com/pine3ree","followers_url":"https://api.github.com/users/pine3ree/followers","following_url":"https://api.github.com/users/pine3ree/following{/other_user}","gists_url":"https://api.github.com/users/pine3ree/gists{/gist_id}","starred_url":"https://api.github.com/users/pine3ree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pine3ree/subscriptions","organizations_url":"https://api.github.com/users/pine3ree/orgs","repos_url":"https://api.github.com/users/pine3ree/repos","events_url":"https://api.github.com/users/pine3ree/events{/privacy}","received_events_url":"https://api.github.com/users/pine3ree/received_events","type":"User","site_admin":false},"body":"is_callable and callable type hinting validate and allows:\r\n```php\r\n[$someObject, 'someMethod'];\r\n['someClass', 'aStaticMethod'];\r\n'someClass::anotherStaticMethod';\r\n\r\n```\r\nin these cases we need to use call_user_func to call them. \r\nOtherwise we need to restrict the $callable to be an invokable object.","created_at":"2015-05-05T00:04:52Z","updated_at":"2015-05-05T00:04:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/slimphp/Slim/pulls/1212/commits","review_comments_url":"https://api.github.com/repos/slimphp/Slim/pulls/1212/comments","review_comment_url":"https://api.github.com/repos/slimphp/Slim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/slimphp/Slim/issues/1212/comments","statuses_url":"https://api.github.com/repos/slimphp/Slim/statuses/3d2a92cc096c176deb4c31c178f2e58f840ec51d","head":{"label":"pine3ree:patch-14","ref":"patch-14","sha":"3d2a92cc096c176deb4c31c178f2e58f840ec51d","user":{"login":"pine3ree","id":3229979,"avatar_url":"https://avatars.githubusercontent.com/u/3229979?v=3","gravatar_id":"","url":"https://api.github.com/users/pine3ree","html_url":"https://github.com/pine3ree","followers_url":"https://api.github.com/users/pine3ree/followers","following_url":"https://api.github.com/users/pine3ree/following{/other_user}","gists_url":"https://api.github.com/users/pine3ree/gists{/gist_id}","starred_url":"https://api.github.com/users/pine3ree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pine3ree/subscriptions","organizations_url":"https://api.github.com/users/pine3ree/orgs","repos_url":"https://api.github.com/users/pine3ree/repos","events_url":"https://api.github.com/users/pine3ree/events{/privacy}","received_events_url":"https://api.github.com/users/pine3ree/received_events","type":"User","site_admin":false},"repo":{"id":16950997,"name":"Slim","full_name":"pine3ree/Slim","owner":{"login":"pine3ree","id":3229979,"avatar_url":"https://avatars.githubusercontent.com/u/3229979?v=3","gravatar_id":"","url":"https://api.github.com/users/pine3ree","html_url":"https://github.com/pine3ree","followers_url":"https://api.github.com/users/pine3ree/followers","following_url":"https://api.github.com/users/pine3ree/following{/other_user}","gists_url":"https://api.github.com/users/pine3ree/gists{/gist_id}","starred_url":"https://api.github.com/users/pine3ree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pine3ree/subscriptions","organizations_url":"https://api.github.com/users/pine3ree/orgs","repos_url":"https://api.github.com/users/pine3ree/repos","events_url":"https://api.github.com/users/pine3ree/events{/privacy}","received_events_url":"https://api.github.com/users/pine3ree/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pine3ree/Slim","description":"A PHP micro framework","fork":true,"url":"https://api.github.com/repos/pine3ree/Slim","forks_url":"https://api.github.com/repos/pine3ree/Slim/forks","keys_url":"https://api.github.com/repos/pine3ree/Slim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pine3ree/Slim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pine3ree/Slim/teams","hooks_url":"https://api.github.com/repos/pine3ree/Slim/hooks","issue_events_url":"https://api.github.com/repos/pine3ree/Slim/issues/events{/number}","events_url":"https://api.github.com/repos/pine3ree/Slim/events","assignees_url":"https://api.github.com/repos/pine3ree/Slim/assignees{/user}","branches_url":"https://api.github.com/repos/pine3ree/Slim/branches{/branch}","tags_url":"https://api.github.com/repos/pine3ree/Slim/tags","blobs_url":"https://api.github.com/repos/pine3ree/Slim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pine3ree/Slim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pine3ree/Slim/git/refs{/sha}","trees_url":"https://api.github.com/repos/pine3ree/Slim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pine3ree/Slim/statuses/{sha}","languages_url":"https://api.github.com/repos/pine3ree/Slim/languages","stargazers_url":"https://api.github.com/repos/pine3ree/Slim/stargazers","contributors_url":"https://api.github.com/repos/pine3ree/Slim/contributors","subscribers_url":"https://api.github.com/repos/pine3ree/Slim/subscribers","subscription_url":"https://api.github.com/repos/pine3ree/Slim/subscription","commits_url":"https://api.github.com/repos/pine3ree/Slim/commits{/sha}","git_commits_url":"https://api.github.com/repos/pine3ree/Slim/git/commits{/sha}","comments_url":"https://api.github.com/repos/pine3ree/Slim/comments{/number}","issue_comment_url":"https://api.github.com/repos/pine3ree/Slim/issues/comments{/number}","contents_url":"https://api.github.com/repos/pine3ree/Slim/contents/{+path}","compare_url":"https://api.github.com/repos/pine3ree/Slim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pine3ree/Slim/merges","archive_url":"https://api.github.com/repos/pine3ree/Slim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pine3ree/Slim/downloads","issues_url":"https://api.github.com/repos/pine3ree/Slim/issues{/number}","pulls_url":"https://api.github.com/repos/pine3ree/Slim/pulls{/number}","milestones_url":"https://api.github.com/repos/pine3ree/Slim/milestones{/number}","notifications_url":"https://api.github.com/repos/pine3ree/Slim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pine3ree/Slim/labels{/name}","releases_url":"https://api.github.com/repos/pine3ree/Slim/releases{/id}","created_at":"2014-02-18T14:15:21Z","updated_at":"2015-02-18T05:03:33Z","pushed_at":"2015-05-05T00:03:47Z","git_url":"git://github.com/pine3ree/Slim.git","ssh_url":"git@github.com:pine3ree/Slim.git","clone_url":"https://github.com/pine3ree/Slim.git","svn_url":"https://github.com/pine3ree/Slim","homepage":"http://www.slimframework.com","size":3845,"stargazers_count":0,"watchers_count":0,"language":"PHP","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":"patch-9"}},"base":{"label":"slimphp:develop","ref":"develop","sha":"29c92746d008ea38fa183c195a08e9335f7a32b6","user":{"login":"slimphp","id":11195762,"avatar_url":"https://avatars.githubusercontent.com/u/11195762?v=3","gravatar_id":"","url":"https://api.github.com/users/slimphp","html_url":"https://github.com/slimphp","followers_url":"https://api.github.com/users/slimphp/followers","following_url":"https://api.github.com/users/slimphp/following{/other_user}","gists_url":"https://api.github.com/users/slimphp/gists{/gist_id}","starred_url":"https://api.github.com/users/slimphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimphp/subscriptions","organizations_url":"https://api.github.com/users/slimphp/orgs","repos_url":"https://api.github.com/users/slimphp/repos","events_url":"https://api.github.com/users/slimphp/events{/privacy}","received_events_url":"https://api.github.com/users/slimphp/received_events","type":"Organization","site_admin":false},"repo":{"id":926544,"name":"Slim","full_name":"slimphp/Slim","owner":{"login":"slimphp","id":11195762,"avatar_url":"https://avatars.githubusercontent.com/u/11195762?v=3","gravatar_id":"","url":"https://api.github.com/users/slimphp","html_url":"https://github.com/slimphp","followers_url":"https://api.github.com/users/slimphp/followers","following_url":"https://api.github.com/users/slimphp/following{/other_user}","gists_url":"https://api.github.com/users/slimphp/gists{/gist_id}","starred_url":"https://api.github.com/users/slimphp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slimphp/subscriptions","organizations_url":"https://api.github.com/users/slimphp/orgs","repos_url":"https://api.github.com/users/slimphp/repos","events_url":"https://api.github.com/users/slimphp/events{/privacy}","received_events_url":"https://api.github.com/users/slimphp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/slimphp/Slim","description":"Slim Framework source code","fork":false,"url":"https://api.github.com/repos/slimphp/Slim","forks_url":"https://api.github.com/repos/slimphp/Slim/forks","keys_url":"https://api.github.com/repos/slimphp/Slim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slimphp/Slim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slimphp/Slim/teams","hooks_url":"https://api.github.com/repos/slimphp/Slim/hooks","issue_events_url":"https://api.github.com/repos/slimphp/Slim/issues/events{/number}","events_url":"https://api.github.com/repos/slimphp/Slim/events","assignees_url":"https://api.github.com/repos/slimphp/Slim/assignees{/user}","branches_url":"https://api.github.com/repos/slimphp/Slim/branches{/branch}","tags_url":"https://api.github.com/repos/slimphp/Slim/tags","blobs_url":"https://api.github.com/repos/slimphp/Slim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slimphp/Slim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slimphp/Slim/git/refs{/sha}","trees_url":"https://api.github.com/repos/slimphp/Slim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slimphp/Slim/statuses/{sha}","languages_url":"https://api.github.com/repos/slimphp/Slim/languages","stargazers_url":"https://api.github.com/repos/slimphp/Slim/stargazers","contributors_url":"https://api.github.com/repos/slimphp/Slim/contributors","subscribers_url":"https://api.github.com/repos/slimphp/Slim/subscribers","subscription_url":"https://api.github.com/repos/slimphp/Slim/subscription","commits_url":"https://api.github.com/repos/slimphp/Slim/commits{/sha}","git_commits_url":"https://api.github.com/repos/slimphp/Slim/git/commits{/sha}","comments_url":"https://api.github.com/repos/slimphp/Slim/comments{/number}","issue_comment_url":"https://api.github.com/repos/slimphp/Slim/issues/comments{/number}","contents_url":"https://api.github.com/repos/slimphp/Slim/contents/{+path}","compare_url":"https://api.github.com/repos/slimphp/Slim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slimphp/Slim/merges","archive_url":"https://api.github.com/repos/slimphp/Slim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slimphp/Slim/downloads","issues_url":"https://api.github.com/repos/slimphp/Slim/issues{/number}","pulls_url":"https://api.github.com/repos/slimphp/Slim/pulls{/number}","milestones_url":"https://api.github.com/repos/slimphp/Slim/milestones{/number}","notifications_url":"https://api.github.com/repos/slimphp/Slim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slimphp/Slim/labels{/name}","releases_url":"https://api.github.com/repos/slimphp/Slim/releases{/id}","created_at":"2010-09-21T01:17:06Z","updated_at":"2015-05-04T21:30:03Z","pushed_at":"2015-05-05T00:04:52Z","git_url":"git://github.com/slimphp/Slim.git","ssh_url":"git@github.com:slimphp/Slim.git","clone_url":"https://github.com/slimphp/Slim.git","svn_url":"https://github.com/slimphp/Slim","homepage":"http://slimframework.com","size":9023,"stargazers_count":5115,"watchers_count":5115,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":917,"mirror_url":null,"open_issues_count":35,"forks":917,"open_issues":35,"watchers":5115,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/1212"},"html":{"href":"https://github.com/slimphp/Slim/pull/1212"},"issue":{"href":"https://api.github.com/repos/slimphp/Slim/issues/1212"},"comments":{"href":"https://api.github.com/repos/slimphp/Slim/issues/1212/comments"},"review_comments":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/1212/comments"},"review_comment":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/slimphp/Slim/pulls/1212/commits"},"statuses":{"href":"https://api.github.com/repos/slimphp/Slim/statuses/3d2a92cc096c176deb4c31c178f2e58f840ec51d"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}