Project

General

Profile

Actions

Bug #86742

closed

ReflectionService: UnknownClassException wrong classname in message

Added by Markus Pircher over 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2018-10-25
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
On Location Sprint

Description

If you reflect a class with ReflectionService, UnknownClassException returns only the parent classname in the message, not the classname who's not found.

That can be, if the given $className exists, but a class used as typehint are not found.

protected function buildClassSchema($className): ClassSchema
    {
        try {
            $classSchema = new ClassSchema($className);
        } catch (\ReflectionException $e) {
            throw new Exception\UnknownClassException('The classname "' . $className . '" was not found and thus can not be reflected.', 1278450972, $e);
        }
        $this->classSchemata[$className] = $classSchema;
        $this->dataCacheNeedsUpdate = true;
        return $classSchema;
    }
Actions

Also available in: Atom PDF