Skip to content

Commit 76f5e43

Browse files
Run annotation registry only when available
1 parent afcf2f5 commit 76f5e43

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/bootstrap.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
require __DIR__ . '/app/TestKernel.php';
1313

14-
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
14+
if (\class_exists(AnnotationRegistry::class)) {
15+
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
16+
}
1517

1618
return $loader;

0 commit comments

Comments
 (0)