We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 980fa76 commit 888d48aCopy full SHA for 888d48a
tests/App/bootstrap.php
@@ -15,6 +15,10 @@
15
16
$loader = require __DIR__.'/../../vendor/autoload.php';
17
18
-AnnotationRegistry::registerLoader([$loader, 'loadClass']);
+// This method only exist on doctrine/annotations:^1.3,
19
+// it is missing but not needed with doctrine/annotations:^2.0
20
+if (method_exists(AnnotationRegistry::class, 'registerLoader')) {
21
+ AnnotationRegistry::registerLoader([$loader, 'loadClass']);
22
+}
23
24
return $loader;
0 commit comments