Skip to content

Commit

Permalink
fix style and such
Browse files Browse the repository at this point in the history
  • Loading branch information
beberlei committed Oct 17, 2020
1 parent 0b29130 commit 82937c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Doctrine/DBAL/Driver/AbstractPostgreSQLDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
}
Expand Down

0 comments on commit 82937c7

Please sign in to comment.