-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Labels
Description
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.
<?php
class Foo {
public function publicFunction() {
$this->privateFunction($this, null);
}
private function privateFunction($that, Bar $undefinedObject = null) {
ldd($that);
}
}
$b = new Foo();
$b->publicFunction();Fatal error: Uncaught exception 'ReflectionException' with message 'Class Bar does not exist'
Relevant documentation: http://www.php.net/manual/en/reflectionparameter.getclass.php