We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6fc5407 commit 3ee046dCopy full SHA for 3ee046d
src/Doctrine/Mapping/ClassMetadataFactory.php
@@ -19,9 +19,10 @@ protected function initialize(): void
19
$driverProperty = $parentReflection->getProperty('driver');
20
$driverProperty->setAccessible(true);
21
22
- $drivers = [
23
- new AnnotationDriver(new AnnotationReader()),
24
- ];
+ $drivers = [];
+ if (class_exists(AnnotationReader::class)) {
+ $drivers[] = new AnnotationDriver(new AnnotationReader());
25
+ }
26
if (class_exists(AttributeDriver::class) && PHP_VERSION_ID >= 80000) {
27
$drivers[] = new AttributeDriver([]);
28
}
0 commit comments