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