Skip to content

Commit 9379abd

Browse files
committed
Compatibility with doctrine/annotations 2
1 parent 5ea977e commit 9379abd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Legacy/SymfonyTestsListenerTrait.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ public function startTestSuite($suite)
138138
if (!class_exists(AnnotationRegistry::class, false) && class_exists(AnnotationRegistry::class)) {
139139
if (method_exists(AnnotationRegistry::class, 'registerUniqueLoader')) {
140140
AnnotationRegistry::registerUniqueLoader('class_exists');
141-
} else {
141+
} elseif (method_exists(AnnotationRegistry::class, 'registerLoader')) {
142142
AnnotationRegistry::registerLoader('class_exists');
143143
}
144144
}

bootstrap.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
if (!class_exists(AnnotationRegistry::class, false) && class_exists(AnnotationRegistry::class)) {
3131
if (method_exists(AnnotationRegistry::class, 'registerUniqueLoader')) {
3232
AnnotationRegistry::registerUniqueLoader('class_exists');
33-
} else {
33+
} elseif (method_exists(AnnotationRegistry::class, 'registerLoader')) {
3434
AnnotationRegistry::registerLoader('class_exists');
3535
}
3636
}

0 commit comments

Comments
 (0)