Skip to content

Commit

Permalink
fix: AnnotationReader condition
Browse files Browse the repository at this point in the history
  • Loading branch information
fogrye committed Apr 7, 2024
1 parent 5629361 commit 96ee8d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/AnnotationReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,9 @@ static function ($attribute) {
return is_a($annotation->getName(), $annotationClass, true);
}),
);

$toAddAnnotations[] = $attributes;
if (count($attributes) > 0) {
$toAddAnnotations[] = $attributes;
}
$refClass = $refClass->getParentClass();
} while ($inherited && $refClass);

Expand Down

0 comments on commit 96ee8d8

Please sign in to comment.