diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index 36735dd8..d5e62ef3 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -82,13 +82,13 @@ class Annotation extends Component $this->_annotations[$alias] = []; } foreach ($paths as $path) { - if (!str_contains($path, '.php')) { - continue; - } $explode = explode('/', $path); $explode_pop = array_pop($explode); if (is_file($path)) { + if (!str_contains($path, '.php')) { + continue; + } $explode_pop = str_replace('.php', '', $explode_pop); $this->getReflect($namespace . '\\' . $explode_pop, $alias); } else {