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; }