From b8bb4898083aa4861fc26dc9fec26a113fd6e4f0 Mon Sep 17 00:00:00 2001 From: Vitor Mattos Date: Thu, 14 Nov 2024 20:40:00 -0300 Subject: [PATCH] fix: psalm Signed-off-by: Vitor Mattos --- lib/Db/SignRequestMapper.php | 2 +- tests/psalm-baseline.xml | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/Db/SignRequestMapper.php b/lib/Db/SignRequestMapper.php index 007cb729de..af180fab81 100644 --- a/lib/Db/SignRequestMapper.php +++ b/lib/Db/SignRequestMapper.php @@ -475,7 +475,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 d3e9eac6b2..2cffa019d1 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -60,11 +60,6 @@ - - - - -