From 2b865ef2225c3bae9e0164c97fc8f2b6098d1bb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 21 Jul 2021 11:32:14 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 1855a2b9..1bdb2578 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -114,10 +114,10 @@ class Loader extends BaseObject */ public function getMethod(string $class, string $method = ''): array { - if (!isset(static::$_classes[$class])) { + if (!isset(static::$_methods[$class])) { return []; } - $properties = static::$_classes[$class]['methods']; + $properties = static::$_methods[$class]['methods']; if (!empty($method) && isset($properties[$method])) { return $properties[$method]; }