This commit is contained in:
2021-01-19 18:15:33 +08:00
parent 6d5f80653b
commit 3430887035
+3 -8
View File
@@ -80,16 +80,11 @@ class Annotation extends Component
$this->_annotations[$alias] = [];
}
foreach ($paths as $path) {
if (!str_contains('.php', $path)) {
continue;
}
$explode = explode('/', $path);
$isPhp = strpos('.php', $path);
if ($isPhp === false) {
continue;
}
if (strlen($path) - 4 != $isPhp) {
continue;
}
$explode_pop = array_pop($explode);
if (is_file($path)) {
$explode_pop = str_replace('.php', '', $explode_pop);