From 1f9d463e7751ab60622bcd5475c12421792531c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 3 Mar 2021 20:07:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Annotation/Loader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])) {