mirror of
https://github.com/doctrine/data-fixtures.git
synced 2026-03-23 22:32:13 +01:00
21 lines
464 B
PHP
21 lines
464 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\Tests\Mock;
|
|
|
|
use Doctrine\ORM\EntityManagerInterface;
|
|
|
|
use function method_exists;
|
|
|
|
if (! method_exists(EntityManagerInterface::class, 'wrapInTransaction')) {
|
|
interface ForwardCompatibleEntityManager extends EntityManagerInterface
|
|
{
|
|
public function wrapInTransaction(callable $func): mixed;
|
|
}
|
|
} else {
|
|
interface ForwardCompatibleEntityManager extends EntityManagerInterface
|
|
{
|
|
}
|
|
}
|