改名
This commit is contained in:
@@ -170,7 +170,9 @@ class Annotation extends Component
|
|||||||
/** @var IAnnotation $annotation */
|
/** @var IAnnotation $annotation */
|
||||||
$annotation = $attribute->newInstance()->execute([$object, $value->getName()]);
|
$annotation = $attribute->newInstance()->execute([$object, $value->getName()]);
|
||||||
if ($value->isStatic()) {
|
if ($value->isStatic()) {
|
||||||
$object::{$value->getName()} = $annotation;
|
$name = $value->getName();
|
||||||
|
|
||||||
|
$object::$name = $annotation;
|
||||||
} else if ($value->isPublic()) {
|
} else if ($value->isPublic()) {
|
||||||
$object->{$value->getName()} = $annotation;
|
$object->{$value->getName()} = $annotation;
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user