Skip to content

Uncaught reflection exception #58

@flip111

Description

@flip111

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions