File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1515use Doctrine \DBAL \Types \Type as DBALType ;
1616use Doctrine \ORM \EntityManager ;
1717use Doctrine \ORM \Mapping \Column ;
18+ use Doctrine \ORM \ORMSetup ;
1819use Doctrine \ORM \Tools \Setup ;
1920use PHPUnit \Framework \TestCase ;
2021use Symfony \Bridge \Doctrine \PropertyInfo \DoctrineExtractor ;
@@ -33,7 +34,9 @@ class DoctrineExtractorTest extends TestCase
3334{
3435 private function createExtractor ()
3536 {
36- $ config = Setup::createAnnotationMetadataConfiguration ([__DIR__ .\DIRECTORY_SEPARATOR .'Fixtures ' ], true );
37+ $ config = class_exists (ORMSetup::class)
38+ ? ORMSetup::createAnnotationMetadataConfiguration ([__DIR__ .\DIRECTORY_SEPARATOR .'Fixtures ' ], true )
39+ : Setup::createAnnotationMetadataConfiguration ([__DIR__ .\DIRECTORY_SEPARATOR .'Fixtures ' ], true );
3740 $ entityManager = EntityManager::create (['driver ' => 'pdo_sqlite ' ], $ config );
3841
3942 if (!DBALType::hasType ('foo ' )) {
Original file line number Diff line number Diff line change 4343 "symfony/validator" : " ^5.2|^6.0" ,
4444 "symfony/translation" : " ^4.4|^5.0|^6.0" ,
4545 "symfony/var-dumper" : " ^4.4|^5.0|^6.0" ,
46- "doctrine/annotations" : " ^1.10.4" ,
46+ "doctrine/annotations" : " ^1.10.4|^2 " ,
4747 "doctrine/collections" : " ^1.0|^2.0" ,
4848 "doctrine/data-fixtures" : " ^1.1" ,
4949 "doctrine/dbal" : " ^2.13.1|^3.0" ,
You can’t perform that action at this time.
0 commit comments