{"action":"closed","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/14420","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/14420/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/14420/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/14420/events","html_url":"https://github.com/laravel/framework/issues/14420","id":166956775,"number":14420,"title":"[Question] Why Type hint Closure when callable is supported?","user":{"login":"ThatTomPerson","id":1112472,"avatar_url":"https://avatars.githubusercontent.com/u/1112472?v=3","gravatar_id":"","url":"https://api.github.com/users/ThatTomPerson","html_url":"https://github.com/ThatTomPerson","followers_url":"https://api.github.com/users/ThatTomPerson/followers","following_url":"https://api.github.com/users/ThatTomPerson/following{/other_user}","gists_url":"https://api.github.com/users/ThatTomPerson/gists{/gist_id}","starred_url":"https://api.github.com/users/ThatTomPerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThatTomPerson/subscriptions","organizations_url":"https://api.github.com/users/ThatTomPerson/orgs","repos_url":"https://api.github.com/users/ThatTomPerson/repos","events_url":"https://api.github.com/users/ThatTomPerson/events{/privacy}","received_events_url":"https://api.github.com/users/ThatTomPerson/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-22T02:15:31Z","updated_at":"2016-07-22T08:05:19Z","closed_at":"2016-07-22T08:05:19Z","body":"In places, methods are type hinted to accept Closures where it looks like they could or already support callable\r\n\r\nan example of this is Connection::listen()\r\nhttps://github.com/laravel/framework/blob/5.2/src/Illuminate/Database/Connection.php#L820-L825\r\n\r\nIt would make code like\r\n```\r\n\\DB::listen(function($sql, $bindings, $time) {\r\n    dump($sql, $bindings, $time);\r\n});\r\n```\r\ninto\r\n```\r\n\\DB::listen('dump');\r\n```"}}
{"actor":{"display_login":"GrahamCampbell"}}