You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Recently I'm building a project with
illuminate/container
separately.But I found something frustrating.
Before 7.x:
Everything is fine, but after 7.x, I got an
Uncaught Illuminate\Contracts\Container\BindingResolutionException
in argument#1 ($bar)
reviewing the code, it is caused by [BoundMethod.php L178](https://github.com/illuminate/container/blob/master/BoundMethod.php#L178}
And the problem is that argument
$bar
's name could not be found at the input argument array. The input array should be['bar' => 1]
instead of[1]
.It is very inconvenient. So I wonder why this feature was introduced.
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions