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(); } }