Skip to content

Commit f1e462c

Browse files
Fixed issue with duplicated annotation class
1 parent 133a3c8 commit f1e462c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AnnotationLoader.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public function build(?string ...$annotationClass): void
9999
}
100100
}
101101

102-
foreach ((array) $annotationClass as $annotation) {
102+
foreach (\array_unique((array) $annotationClass) as $annotation) {
103103
$loadedAnnotation = \array_filter($annotations[$annotation] ?? []);
104104

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

0 commit comments

Comments
 (0)