Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[9.x] Set previous exception on HttpResponseException #51960

Conversation

hafezdivandari
Copy link
Contributor

@hafezdivandari hafezdivandari commented Jun 30, 2024

We need this for laravel/passport#1763 - Passport's current version still supports Laravel 9.x so we have to make this change on framework 9.x

The exception handler supports handling http response exceptions by extending \Illuminate\Http\Exceptions\HttpResponseException but there is no way to set the actual / previous exception when extending this class?

Copy link

Thanks for submitting a PR!

Note that draft PR's are not reviewed. If you would like a review, please mark your pull request as ready for review in the GitHub user interface.

Pull requests that are abandoned in draft may be closed due to inactivity.

@hafezdivandari hafezdivandari changed the base branch from 11.x to 9.x June 30, 2024 06:15
@hafezdivandari hafezdivandari changed the base branch from 9.x to 11.x June 30, 2024 06:16
@hafezdivandari hafezdivandari changed the base branch from 11.x to 9.x June 30, 2024 06:35
@hafezdivandari hafezdivandari force-pushed the 11.x-http-response-exception-previous branch from a31df6d to dc2e925 Compare June 30, 2024 06:49
@hafezdivandari hafezdivandari changed the title [11.x] Set previous exception on HttpResponseException [9.x] Set previous exception on HttpResponseException Jun 30, 2024
@hafezdivandari hafezdivandari marked this pull request as ready for review June 30, 2024 07:03
@hafezdivandari
Copy link
Contributor Author

The latest commit on 9.x branch has failing test: https://github.com/laravel/framework/tree/9.x

@driesvints
Copy link
Member

Thanks @hafezdivandari. We don't maintain v9 any longer sorry. If this change needs to be made we'll need to do it in v10 and then differentiate between Laravel versions in Passport v12. Or only make the change in Passport v13.

@driesvints driesvints closed this Jul 1, 2024
@hafezdivandari hafezdivandari deleted the 11.x-http-response-exception-previous branch July 1, 2024 08:50
@hafezdivandari
Copy link
Contributor Author

@driesvints sure, I've resent this on #51968

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.

2 participants