{"action":"opened","issue":{"url":"https://api.github.com/repos/Sorien/silex-idea-plugin/issues/13","labels_url":"https://api.github.com/repos/Sorien/silex-idea-plugin/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/Sorien/silex-idea-plugin/issues/13/comments","events_url":"https://api.github.com/repos/Sorien/silex-idea-plugin/issues/13/events","html_url":"https://github.com/Sorien/silex-idea-plugin/issues/13","id":89316051,"number":13,"title":"Extend closure with one parameter resolves wrong type","user":{"login":"CarsonF","id":932566,"avatar_url":"https://avatars.githubusercontent.com/u/932566?v=3","gravatar_id":"","url":"https://api.github.com/users/CarsonF","html_url":"https://github.com/CarsonF","followers_url":"https://api.github.com/users/CarsonF/followers","following_url":"https://api.github.com/users/CarsonF/following{/other_user}","gists_url":"https://api.github.com/users/CarsonF/gists{/gist_id}","starred_url":"https://api.github.com/users/CarsonF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CarsonF/subscriptions","organizations_url":"https://api.github.com/users/CarsonF/orgs","repos_url":"https://api.github.com/users/CarsonF/repos","events_url":"https://api.github.com/users/CarsonF/events{/privacy}","received_events_url":"https://api.github.com/users/CarsonF/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-18T14:58:58Z","updated_at":"2015-06-18T14:58:58Z","closed_at":null,"body":"```php\r\n$app->extend('foo', function(Foo $foo) {\r\n    // $foo resolved to Application\r\n});\r\n```\r\nAdding the second parameter to the closure fixes resolving the first parameter correctly"}}