Sorien / silex-idea-plugin

Idea plugin for Silex Framework - plugin is not compatible with PHPStorm 2016.2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extend closure with one parameter resolves wrong type

CarsonF opened this issue · comments

$app->extend('foo', function(Foo $foo) {
    // $foo resolved to Application
});

Adding the second parameter to the closure fixes resolving the first parameter correctly

note for me: check what will happen when given $foo type is not typehinted one

Should note that it doesn't matter whether the first parameter is typehinted or not. It happens in both cases.