Skip to content

Commit

Permalink
Run annotation registry only when available
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-schranz committed Jul 16, 2024
1 parent afcf2f5 commit f015843
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

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

AnnotationRegistry::registerLoader([$loader, 'loadClass']);
if (\class_exists(AnnotationRegistry::class)) {
AnnotationRegistry::registerLoader([$loader, 'loadClass']);
}

return $loader;

0 comments on commit f015843

Please sign in to comment.