File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 27
27
28
28
use function array_map ;
29
29
use function get_class ;
30
+ use function method_exists ;
30
31
31
32
class IntegrationTest extends TestCase
32
33
{
@@ -455,8 +456,14 @@ public function testRunCommandWithPurgeMode(): void
455
456
}
456
457
}
457
458
458
- interface ForwardCompatibleEntityManager extends EntityManagerInterface
459
- {
460
- /** @return mixed */
461
- public function wrapInTransaction (callable $ func );
459
+ if (method_exists (EntityManagerInterface::class, 'wrapInTransaction ' )) {
460
+ interface ForwardCompatibleEntityManager extends EntityManagerInterface
461
+ {
462
+ }
463
+ } else {
464
+ interface ForwardCompatibleEntityManager extends EntityManagerInterface
465
+ {
466
+ /** @return mixed */
467
+ public function wrapInTransaction (callable $ func );
468
+ }
462
469
}
Original file line number Diff line number Diff line change 23
23
"php" : " ^7.4 || ^8.0" ,
24
24
"doctrine/data-fixtures" : " ^1.3" ,
25
25
"doctrine/doctrine-bundle" : " ^2.2" ,
26
- "doctrine/orm" : " ^2.14.0" ,
26
+ "doctrine/orm" : " ^2.14.0 || ^3.0 " ,
27
27
"doctrine/persistence" : " ^2.4|^3.0" ,
28
28
"symfony/config" : " ^5.4|^6.0|^7.0" ,
29
29
"symfony/console" : " ^5.4|^6.0|^7.0" ,
Original file line number Diff line number Diff line change 28
28
<DuplicateClass >
29
29
<errorLevel type =" suppress" >
30
30
<file name =" Command/CommandCompatibility.php" />
31
+ <file name =" Tests/IntegrationTest.php" />
31
32
</errorLevel >
32
33
</DuplicateClass >
33
34
</issueHandlers >
You can’t perform that action at this time.
0 commit comments