We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4040cf0 commit f3abbd8Copy full SHA for f3abbd8
src/Doctrine/Mapping/ClassMetadataFactory.php
@@ -29,7 +29,7 @@ public function __construct(string $tmpDir)
29
protected function initialize(): void
30
{
31
$drivers = [];
32
- if (class_exists(AnnotationReader::class)) {
+ if (class_exists(AnnotationDriver::class) && class_exists(AnnotationReader::class)) {
33
$docParser = new DocParser();
34
$docParser->setIgnoreNotImportedAnnotations(true);
35
$drivers[] = new AnnotationDriver(new AnnotationReader($docParser));
0 commit comments