From 82937c79463f9b9eec2d6ba2cab2b129e7e287e4 Mon Sep 17 00:00:00 2001 From: Benjamin Eberlei Date: Thu, 15 Oct 2020 18:48:19 +0200 Subject: [PATCH] fix style and such --- lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php | 2 +- .../Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php b/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php index 93b3eaa33f5..33b39589b9b 100644 --- a/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php +++ b/lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php @@ -85,7 +85,7 @@ public function convertException($message, DeprecatedDriverException $exception) return new TableExistsException($message, $exception); case '08006': - return new Exception\ConnectionException($message, $exception); + return new ConnectionException($message, $exception); case '7': // Prior to fixing https://bugs.php.net/bug.php?id=64705 (PHP 7.3.22 and PHP 7.4.10), diff --git a/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php b/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php index 5e90a8e3c50..eef443b8ef2 100644 --- a/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php +++ b/tests/Doctrine/Tests/DBAL/Platforms/AbstractPlatformTestCase.php @@ -264,7 +264,7 @@ public function testGeneratesForeignKeySqlOnlyWhenSupportingForeignKeys(): void if ($this->platform->supportsForeignKeyConstraints()) { self::assertIsString($this->platform->getCreateForeignKeySQL($fk, 'test')); } else { - $this->expectException(Exception::class); + $this->expectException(DBALException::class); $this->platform->getCreateForeignKeySQL($fk, 'test'); } }