Extend closure with one parameter resolves wrong type
CarsonF opened this issue · comments
Carson Full commented
$app->extend('foo', function(Foo $foo) {
// $foo resolved to Application
});
Adding the second parameter to the closure fixes resolving the first parameter correctly
Sorien commented
note for me: check what will happen when given $foo type is not typehinted one
Carson Full commented
Should note that it doesn't matter whether the first parameter is typehinted or not. It happens in both cases.