From 4af17359a7ef3989f2ee69bb84f4079fb1a6ca6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 28 Feb 2022 10:20:46 +0800 Subject: [PATCH] modify plugin name --- Target.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Target.php b/Target.php index f58833c..0058951 100644 --- a/Target.php +++ b/Target.php @@ -87,14 +87,14 @@ class Target /** * @param string $method * @param string $annotation - * @return mixed + * @return null|array * @throws ReflectionException */ - public function getSpecify_annotation(string $method, string $annotation): mixed + #[Pure] public function getSpecify_annotation(string $method, string $annotation): ?array { $data = $this->getMethodAttribute($method, $annotation); if (!empty($data)) { - return $data->newInstance(); + return $data; } return null; }