Skip to content

[6.x] Use BindingResolutionException to signal problem with container resolution#32349

Merged
taylorotwell merged 1 commit into
laravel:6.xfrom
mfn:mfn-binding
Apr 13, 2020
Merged

[6.x] Use BindingResolutionException to signal problem with container resolution#32349
taylorotwell merged 1 commit into
laravel:6.xfrom
mfn:mfn-binding

Conversation

@mfn

@mfn mfn commented Apr 12, 2020

Copy link
Copy Markdown
Contributor

Same as #32348 but targeting L6

As part of static analysis sometimes abstracts get resolved which aren't
resolvable => that's totally fine but it would help to use a common
exception to signal this.

I figured BindingResolutionException would be the correct one. For example,
it's caught in cases like \Illuminate\Foundation\Exceptions\Handler::whoopsHandler
and IMHO this would also benefit from a streamlined exception.

…ution

As part of static analysis sometimes abstracts get resolved which aren't
resolvable => that's totally fine but it would help to use a common
exception to signal this.

I figured BindingResolutionException would be the correct one. For example,
it's caught in cases like `\Illuminate\Foundation\Exceptions\Handler::whoopsHandler`
and IMHO this would also benefit from a streamlined exception.
@GrahamCampbell

Copy link
Copy Markdown
Collaborator

Could you please send the same PR to Lumen 7 please (not Lumen 6 since LTS only applied to laravel/framework).

@mfn

mfn commented Apr 13, 2020

Copy link
Copy Markdown
Contributor Author

Could you please send the same PR to Lumen 7 please (not Lumen 6 since LTS only applied to laravel/framework).

Aye, see laravel/lumen-framework#1065 !

@taylorotwell taylorotwell merged commit 0eb3787 into laravel:6.x Apr 13, 2020
@mfn mfn deleted the mfn-binding branch April 13, 2020 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants