File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 18
18
],
19
19
"require" : {
20
20
"php" : " ^7.2 | ^8.0" ,
21
- "doctrine/annotations" : " ^1.13.2" ,
21
+ "doctrine/annotations" : " ^1.13.2 || ^2.0 " ,
22
22
"jms/metadata" : " ^2.0" ,
23
23
"jms/serializer" : " ^3.18.2" ,
24
24
"symfony/expression-language" : " ~3.0 || ~4.0 || ~5.0 || ~6.0"
25
25
},
26
26
"require-dev" : {
27
27
"phpunit/phpunit" : " ^7 | ^9.5.10" ,
28
28
"doctrine/coding-standard" : " ^5.0 | ^8.0" ,
29
- "doctrine/persistence" : " ^1.3.4" ,
29
+ "doctrine/persistence" : " ^1.3.4 | ^2.0 | ^3.0 " ,
30
30
"pagerfanta/core" : " ^2.4 || ^3.0" ,
31
31
"phpdocumentor/type-resolver" : " ^1.5.1" ,
32
32
"phpspec/prophecy-phpunit" : " ^2.0.1" ,
Original file line number Diff line number Diff line change 18
18
19
19
$ loader ->add ('Hateoas\Tests ' , __DIR__ );
20
20
21
- AnnotationRegistry::registerLoader ('class_exists ' );
21
+ // Method has been removed in doctrine/annotations:2
22
+ if (method_exists (AnnotationRegistry::class, 'registerLoader ' )) {
23
+ AnnotationRegistry::registerLoader ('class_exists ' );
24
+ }
You can’t perform that action at this time.
0 commit comments