diff --git a/Annotation/Loader.php b/Annotation/Loader.php index dbf5bd3e..7c736ff8 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -143,7 +143,7 @@ class Loader extends BaseObject try { $replace = Snowflake::getDi()->getReflect($namespace . implode('\\', $explode)); - if (!$replace->isInstantiable()) { + if (empty($replace) || !$replace->isInstantiable()) { continue; }