Closed CarsonF closed 9 years ago
$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.
Adding the second parameter to the closure fixes resolving the first parameter correctly