You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
try {
$class = $methodParameterReflected->getClass();
} catch (\ReflectionException $e) {
// This happens if the Class does not exist
$methodParameter->setType('Wrong_Typehint!');
}
With this, ldd works just fine and when dumping the signatures of the method, this Wrong_Typehint! warning appears but I am not sure about how to make it more relevant to the user
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://www.php.net/manual/en/reflectionparameter.getclass.php
The text was updated successfully, but these errors were encountered: