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