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

[11.x] Fix new exception renderer compatibility with closure middleware #51614

Conversation

ifox
Copy link
Contributor

@ifox ifox commented May 29, 2024

In an application with a closure/inline middleware in a controller, the exception renderer fails with Object of class Closure could not be converted to string.

This was previously fixed in Debugbar for Laravel: barryvdh/laravel-debugbar#1146.

The word "Closure" is now returned instead of failing:

Screenshot 2024-05-29 at 13 42 07

In an application with a closure/inline middleware in a controller, the exception renderer fails with "Object of class Closure could not be converted to string"
@ifox ifox changed the title Fix new exception renderer compatibility with closure middleware [11.x] Fix new exception renderer compatibility with closure middleware May 29, 2024
@taylorotwell taylorotwell merged commit 8b769a0 into laravel:11.x May 29, 2024
30 checks passed
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