Skip to content

Commit

Permalink
fix attribute to string
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Feb 2, 2024
1 parent 6b94865 commit 6c895fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Traits/AttributeResolverTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function getAttributes(?string $name = null, int $flags = 0): array
if ($name !== null) {
$attributes[] = new ReflectionAttribute($name, $flags, $attributeHolder);
} else {
$attributes[] = new ReflectionAttribute($attr->toString(), $flags, $attributeHolder);
$attributes[] = new ReflectionAttribute($attr->name->toString(), $flags, $attributeHolder);
}
}
}
Expand Down

0 comments on commit 6c895fe

Please sign in to comment.