Skip to content

Commit

Permalink
Fixed issue with duplicated annotation class
Browse files Browse the repository at this point in the history
  • Loading branch information
divineniiquaye committed Aug 30, 2021
1 parent 133a3c8 commit f1e462c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AnnotationLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public function build(?string ...$annotationClass): void
}
}

foreach ((array) $annotationClass as $annotation) {
foreach (\array_unique((array) $annotationClass) as $annotation) {
$loadedAnnotation = \array_filter($annotations[$annotation] ?? []);

if (isset($this->listeners[$annotation])) {
Expand Down

0 comments on commit f1e462c

Please sign in to comment.