diff --git a/Annotation/Loader.php b/Annotation/Loader.php index a6e16069..d0a49b4b 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -96,7 +96,7 @@ class Loader extends BaseObject public function getMethod(string $class, string $method = ''): mixed { if (!isset($this->_classes[$class])) { - return null; + return []; } $properties = $this->_classes[$class]['methods']; if (!empty($property) && isset($properties[$method])) {