8000 Use Version · symfony/symfony@19f7bc7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 19f7bc7

Browse files
committed
Use Version
1 parent 329e862 commit 19f7bc7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Symfony/Component/Messenger/Tests/Transport/Doctrine/DoctrineReceiverTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Doctrine\DBAL\Driver\PDO\Exception;
1616
use Doctrine\DBAL\Driver\PDOException;
1717
use Doctrine\DBAL\Exception\DeadlockException;
18+
use Doctrine\DBAL\Version;
1819
use PHPUnit\Framework\TestCase;
1920
use Symfony\Component\Messenger\Envelope;
2021
use Symfony\Component\Messenger\Exception\MessageDecodingFailedException;
@@ -78,7 +79,7 @@ public function testOccursRetryableExceptionFromConnection()
7879
$serializer = $this->createSerializer();
7980
$connection = $this->createMock(Connection::class);
8081
$driverException = class_exists(Exception::class) ? Exception::new(new \PDOException('Deadlock', 40001)) : new PDOException(new \PDOException('Deadlock', 40001));
81-
if (!interface_exists(Result::class)) {
82+
if (!class_exists(Version::class)) {
8283
// This is doctrine/dbal 3.x
8384
$deadlockException = new DeadlockException($driverException, null);
8485
} else {

0 commit comments

Comments
 (0)
0