From aafb48a5fb5f389f3487c7c0a6c6214ffc34e821 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Tue, 5 Nov 2024 16:23:48 -0300 Subject: [PATCH] fix: deprecated This was deprecated at Nextcloud 30 Signed-off-by: Vitor Mattos --- lib/Db/SignRequestMapper.php | 3 +-- tests/psalm-baseline.xml | 5 ----- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/Db/SignRequestMapper.php b/lib/Db/SignRequestMapper.php index d2119a2cc..de05e6103 100644 --- a/lib/Db/SignRequestMapper.php +++ b/lib/Db/SignRequestMapper.php @@ -8,7 +8,6 @@ namespace OCA\Libresign\Db; -use Doctrine\DBAL\Platforms\PostgreSQLPlatform; use OCA\Libresign\Helper\Pagination; use OCA\Libresign\Service\IdentifyMethod\IIdentifyMethod; use OCA\Libresign\Service\IdentifyMethodService; @@ -458,7 +457,7 @@ private function getFilesAssociatedFilesWithMeQueryBuilder(string $userId, ?arra // when the database is PostgreSQL. The problem is that the command // addGroupBy add quotes over all text send as argument. With // PostgreSQL json columns don't have problem if not added to group by. - if (!$qb->getConnection()->getDatabasePlatform() instanceof PostgreSQLPlatform) { + if ($qb->getConnection()->getDatabaseProvider() !== IDBConnection::PLATFORM_POSTGRES) { $qb->addGroupBy('f.metadata'); } diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index f187a4f3f..33a35a87d 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -56,11 +56,6 @@ - - - - -