-
Notifications
You must be signed in to change notification settings - Fork 51
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
Uncaught reflection exception #58
Comments
I have looked into this and we can definitely detect this issue in runtime but I am not sure about how to alert the user in the dump process I have been able to intercept the problem with this dirty hack around https://github.com/raulfraile/ladybug/blob/master/src/Ladybug/Type/Object/Container.php#L389:
With this, ldd works just fine and when dumping the signatures of the method, this Ideas @raulfraile ? |
It would be nice if ladybug could catch this Exception and make some more descriptive information rather then letting PHP crash on a Fatal Error.
Fatal error: Uncaught exception 'ReflectionException' with message 'Class Bar does not exist'
Relevant documentation: http:https://www.php.net/manual/en/reflectionparameter.getclass.php
The text was updated successfully, but these errors were encountered: