summaryrefslogtreecommitdiffstats
path: root/lib/Db/ItemMapperV2.php
diff options
context:
space:
mode:
authorSean Molenaar <sean@seanmolenaar.eu>2021-01-08 23:26:10 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-01-12 13:29:08 +0100
commit67b6c4e1b0a9fa0138eb897f8a19e5b85d705c29 (patch)
treee1eeaea2f2e9bd41a9ca9437109f0fe2f3306295 /lib/Db/ItemMapperV2.php
parente5d56f2c2e4542fca98194620a30605aa9e14437 (diff)
Fix psalm issues
Signed-off-by: Sean Molenaar <sean@seanmolenaar.eu>
Diffstat (limited to 'lib/Db/ItemMapperV2.php')
-rw-r--r--lib/Db/ItemMapperV2.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Db/ItemMapperV2.php b/lib/Db/ItemMapperV2.php
index a67275320..0c3191540 100644
--- a/lib/Db/ItemMapperV2.php
+++ b/lib/Db/ItemMapperV2.php
@@ -12,7 +12,6 @@
namespace OCA\News\Db;
-use Doctrine\DBAL\FetchMode;
use OCA\News\Utility\Time;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\Db\Entity;
@@ -152,7 +151,7 @@ class ItemMapperV2 extends NewsMapperV2
->groupBy('feed_id')
->where('');
- return $this->db->executeQuery($query)->fetch(FetchMode::ASSOCIATIVE);
+ return $this->db->executeQuery($query->getSQL());
}
/**