laravel / passport

Laravel Passport provides OAuth2 server support to Laravel.
https://laravel.com/docs/passport
MIT License
3.29k stars 780 forks source link

[13.x] Fix register a custom rendering closure for `OAuthServerException` #1763

Closed hafezdivandari closed 4 months ago

hafezdivandari commented 4 months ago

PR laravel/framework#51968 has to be merged before this.

Fixes #1756

Overriding the render method on \Laravel\Passport\Exceptions\OAuthServerException causes issue when registering a custom rendering closure, because this method takes precedence over the registered custom closure.

driesvints commented 4 months ago

Thanks @hafezdivandari