-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Exclude anonymous functions from app #481
Comments
Are we sure that we want to do that? Frameworks like Symfony use a lot of anonymous functions, i.e. for event dispatching or request handling, and hiding those steps could make reading the stack trace a bit difficult. |
@Jean85 i think this only affects internal PHP functions, but I'm not sure. |
Are we sure that in branch |
I'm not sure if it's changed in 2.x but as I've said before, while the rewrite is great, it doesn't mean we're abandoning things until it's done. |
@Jean85 i think the thing we need to confirm is, do the closures that are defined in Foo.php show up as being defined there? The main issue is the ones that are without file location. Per @stayallive's suggestion in the PR, I do think we can improve by doing reflection when possible, and that might ensure that "all app code has a filename". |
mmm yeah we will want to confirm if we do reflection if we still get the controller as the filename, since the main goal is to avoid breaking apart the stacktrace repeatedly (which is what happens in laravel right now) |
I do not have a Laravel app to do the same test... someone else? |
Yeah I didn't test the code yet but will try it out to see if it helps on Laravel. |
They're not correctly "in app", and if we can't guarantee they are in situations where we've configured an app prefix, let's just exclude them.
The text was updated successfully, but these errors were encountered: