modify plugin name

This commit is contained in:
2022-02-23 17:20:25 +08:00
parent 1190a0d26c
commit b278f17175
+7 -1
View File
@@ -157,7 +157,13 @@ class Target
/** @var ReflectionMethod $attributes */
$attributes = $this->methods[$property] ?? [];
if (!empty($attributes)) {
return $attributes->getAttributes($annotation);
if (empty($annotation)) {
return $attributes->getAttributes();
}
$anno = $attributes->getAttributes($annotation);
if (count($anno) > 0) {
return $anno[0];
}
}
return [];
}