diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 27c4a41e..1b0d29ca 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -235,6 +235,7 @@ class Loader extends BaseObject return; } foreach ($this->_directory as $key => $_path) { + $key = '/' . trim($path, '/'); if (!str_starts_with($key, $path)) { continue; }