Skip to content

Commit

Permalink
fix AnnotationDriver check
Browse files Browse the repository at this point in the history
  • Loading branch information
janatjak authored and ondrejmirtes committed Feb 12, 2024
1 parent 4040cf0 commit f3abbd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Doctrine/Mapping/ClassMetadataFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function __construct(string $tmpDir)
protected function initialize(): void
{
$drivers = [];
if (class_exists(AnnotationReader::class)) {
if (class_exists(AnnotationDriver::class) && class_exists(AnnotationReader::class)) {
$docParser = new DocParser();
$docParser->setIgnoreNotImportedAnnotations(true);
$drivers[] = new AnnotationDriver(new AnnotationReader($docParser));
Expand Down

0 comments on commit f3abbd8

Please sign in to comment.