From b8993ecc56129a95274ba47c8396fff022afb1f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 23 Feb 2022 10:48:38 +0800 Subject: [PATCH] modify plugin name --- NoteManager.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/NoteManager.php b/NoteManager.php index 6347232..8b9ade3 100644 --- a/NoteManager.php +++ b/NoteManager.php @@ -269,12 +269,11 @@ class NoteManager /** * @param ReflectionClass|string $class * @return array - * @throws \ReflectionException */ public static function getMethods(ReflectionClass|string $class): array { if (is_string($class)) { - $class = self::getReflect($class); + $class = \Kiri::getDi()->getReflect($class); } return static::$_classMethod[$class->getName()] ?? []; }