Skip to content

Commit f3abbd8

Browse files
janatjakondrejmirtes
authored andcommitted
fix AnnotationDriver check
1 parent 4040cf0 commit f3abbd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Doctrine/Mapping/ClassMetadataFactory.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function __construct(string $tmpDir)
2929
protected function initialize(): void
3030
{
3131
$drivers = [];
32-
if (class_exists(AnnotationReader::class)) {
32+
if (class_exists(AnnotationDriver::class) && class_exists(AnnotationReader::class)) {
3333
$docParser = new DocParser();
3434
$docParser->setIgnoreNotImportedAnnotations(true);
3535
$drivers[] = new AnnotationDriver(new AnnotationReader($docParser));

0 commit comments

Comments
 (0)