modify plugin name
This commit is contained in:
+3
-3
@@ -87,14 +87,14 @@ class Target
|
|||||||
/**
|
/**
|
||||||
* @param string $method
|
* @param string $method
|
||||||
* @param string $annotation
|
* @param string $annotation
|
||||||
* @return mixed
|
* @return null|array
|
||||||
* @throws ReflectionException
|
* @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);
|
$data = $this->getMethodAttribute($method, $annotation);
|
||||||
if (!empty($data)) {
|
if (!empty($data)) {
|
||||||
return $data->newInstance();
|
return $data;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user