diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 1cd3814b..61f02519 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -173,10 +173,7 @@ class Loader extends BaseObject $replace = Snowflake::getDi()->getReflect($this->explodeFileName($path, $namespace)); - var_dump($replace->getName()); - var_dump($replace->getAttributes(Target::class)); - - if (empty($replace) || !$replace->getAttributes(Target::class)) { + if (empty($replace) || count($replace->getAttributes(Target::class)) < 1) { return; } $this->appendFileToDirectory($path->getRealPath(), $replace->getName());