diff --git a/Annotation/Annotation.php b/Annotation/Annotation.php index b7e38bcc..d5314c9a 100644 --- a/Annotation/Annotation.php +++ b/Annotation/Annotation.php @@ -83,7 +83,7 @@ class Annotation extends Component $explode = explode('/', $path); $length = strlen($path); - if ($length != $length - strpos('.php', $path)) { + if ($length - 4 != $length - strpos('.php', $path)) { continue; }