File tree Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Expand file tree Collapse file tree 4 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 6969 if : " ${{ matrix.mongodb-odm-version }}"
7070 run : " composer require --dev --no-update doctrine/mongodb-odm:${{ matrix.mongodb-odm-version }}"
7171
72+ # Remove PHP-CS-Fixer to avoid conflicting dependency ranges (i.e. doctrine/annotations)
73+ - name : " Remove PHP-CS-Fixer"
74+ run : " composer remove --dev --no-update friendsofphp/php-cs-fixer"
75+
7276 - name : " Install dependencies with Composer"
7377 uses : " ramsey/composer-install@v2"
7478 with :
Original file line number Diff line number Diff line change 4040 "require" : {
4141 "php" : " ^7.2 || ^8.0" ,
4242 "behat/transliterator" : " ~1.2" ,
43- "doctrine/annotations" : " ^1.13" ,
43+ "doctrine/annotations" : " ^1.13 || ^2.0 " ,
4444 "doctrine/collections" : " ^1.2 || ^2.0" ,
4545 "doctrine/common" : " ^2.13 || ^3.0" ,
4646 "doctrine/event-manager" : " ^1.2 || ^2.0" ,
Original file line number Diff line number Diff line change 1212namespace Gedmo \Tests \Mapping ;
1313
1414use Doctrine \Common \Annotations \AnnotationReader ;
15- use Doctrine \Common \Annotations \AnnotationRegistry ;
1615use Doctrine \Common \EventManager ;
1716use Doctrine \ORM \Mapping \Driver \YamlDriver ;
1817use Doctrine \Persistence \Mapping \Driver \MappingDriverChain ;
@@ -49,10 +48,6 @@ protected function setUp(): void
4948 'Gedmo\Tests\Mapping\Fixture\Yaml '
5049 );
5150 $ reader = new AnnotationReader ();
52- AnnotationRegistry::registerAutoloadNamespace (
53- 'Gedmo \\Mapping \\Annotation ' ,
54- dirname (VENDOR_PATH ).'/src '
55- );
5651 $ chainDriverImpl ->addDriver (
5752 new \Doctrine \ORM \Mapping \Driver \AnnotationDriver ($ reader ),
5853 'Gedmo\Tests\Mapping\Fixture '
Original file line number Diff line number Diff line change 2424
2525define ('TESTS_PATH ' , __DIR__ );
2626define ('TESTS_TEMP_DIR ' , sys_get_temp_dir ().'/doctrine-extension-tests ' );
27- define ('VENDOR_PATH ' , realpath (dirname (__DIR__ ).'/vendor ' ));
2827
2928require dirname (__DIR__ ).'/vendor/autoload.php ' ;
3029
You can’t perform that action at this time.
0 commit comments