diff --git a/System/Di/Container.php b/System/Di/Container.php index 9de5485b..a56acea9 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -187,7 +187,7 @@ class Container extends BaseObject * @return mixed * @throws ReflectionException */ - public function getReflect($class): ReflectionClass + public function getReflect($class): ?ReflectionClass { $reflect = $this->_reflection[$class] ?? null; if (!is_null($reflect)) {