From 96515cea00133fb2b8a119372787f386622b1f2b Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Mon, 3 May 2021 04:02:57 +0800 Subject: [PATCH] modify --- Annotation/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 9ce0477e..a7e42c8c 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -380,7 +380,7 @@ class Loader extends BaseObject private function newInstance($class) { $reflection = Snowflake::getDi()->getReflect($class); - return $reflection->newInstance(); + return $reflection?->newInstance(); } }