From d9a279ba2b0d695fa98ef7924f9726321de548b6 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 27 Jul 2021 04:22:53 +0800 Subject: [PATCH] modify --- System/Snowflake.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/System/Snowflake.php b/System/Snowflake.php index d01f6179..3e19db58 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -58,10 +58,13 @@ class Snowflake $attributes = static::getDi()->getClassProperty($class::class); /** * @var string $property - * @var \Annotation\Attribute $attribute + * @var \ReflectionProperty $attribute */ foreach ($attributes as $property => $attribute) { - $attribute->execute($class, $property); + + foreach ($attribute->getAttributes() as $item) { + $item->newInstance()->execute($class, $property); + } } }