Skip to content

Commit

Permalink
fix dbal deprecations
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Brahmer <[email protected]>
  • Loading branch information
Grotax committed Nov 8, 2023
1 parent 6f2f0b4 commit 6447070
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Db/ItemMapperV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

use OC\DB\QueryBuilder\Literal;
use OCA\News\Service\Exceptions\ServiceValidationException;
use Doctrine\DBAL\FetchMode;
use PDO;
use OCA\News\Utility\Time;
use OCP\AppFramework\Db\DoesNotExistException;
use OCP\AppFramework\Db\Entity;
Expand Down Expand Up @@ -201,7 +201,7 @@ public function deleteOverThreshold(int $threshold, bool $purgeUnread): ?int
->groupBy('feed_id');

$feeds = $this->db->executeQuery($feedQb->getSQL())
->fetchAll(FetchMode::ASSOCIATIVE);
->fetchAll();

if ($feeds === []) {
return null;
Expand All @@ -227,7 +227,7 @@ public function deleteOverThreshold(int $threshold, bool $purgeUnread): ?int
$rangeQuery->setFirstResult(max($threshold, $feed['articlesPerUpdate']));

$items = $this->db->executeQuery($rangeQuery->getSQL(), ['feedId' => $feed['feed_id']])
->fetchAll(FetchMode::COLUMN);
->fetchAll(PDO::FETCH_COLUMN);

$total_items = array_merge($total_items, $items);
}
Expand Down

0 comments on commit 6447070

Please sign in to comment.