From b62d25e112e3a3a8190a71baf6840c426d6f958e Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 23 Feb 2021 01:40:48 +0800 Subject: [PATCH] modify --- System/Di/Container.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {