diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 90125d76..bd9aaf06 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -231,7 +231,7 @@ class Loader extends BaseObject return; } foreach ($this->_directory[$path] as $key => $_path) { - if (!str_starts_with($key, $path)) { + if (!str_contains($key, $path)) { continue; } $this->execute($this->_directory[$_path]);