This commit is contained in:
2021-01-19 18:33:21 +08:00
parent 71b892f2b7
commit 751e16c5b7
+3 -3
View File
@@ -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 {