Skip to content

Commit

Permalink
Fix doctrine/annotations:2 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewmy committed Dec 21, 2023
1 parent e9bad64 commit e910537
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/job-queue/Tests/Functional/app/AppKernel.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<?php

Doctrine\Common\Annotations\AnnotationRegistry::registerLoader('class_exists');
// doctrine/annotations:2 autoloads annotations and removes loader registration
if (method_exists(\Doctrine\Common\Annotations\AnnotationRegistry::class, 'registerLoader')) {
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader('class_exists');
}

use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\HttpKernel\Kernel;
Expand Down

0 comments on commit e910537

Please sign in to comment.