- Fixed missing tags from traits

This commit is contained in:
mcndave committed 2023-11-17 21:59:29 -05:00
1 parent 5f00c2b603
commit 0fcff83eac
2 files changed
+10 -10

No files matched your search

+3 -3
View File
@@ -34,12 +34,12 @@ class AnnotationReader
return $this->parseDocComment($method);
}
protected function parseDocComment(Reflector $reflect)
protected function parseDocComment(\Reflector $reflect)
{
$tags = [];
if ( $reflect->getAttributes() ) {
foreach($reflect->getAttributes() as $attr) {
if ( $attributes = $reflect->getAttributes() ) {
foreach($attributes as $attr) {
try {
$tags[] = [
'tag' => substr(strrchr($attr->getName(), "\\"), 1),