summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Brahmer <info@b-brahmer.de>2021-01-07 12:00:10 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-01-08 22:45:10 +0100
commit52f1142cd3ff42a2f33e4d0fed6c6247eda677e8 (patch)
tree68312153b4e4b8ed32e65320e6f311583b39068f
parent67bbd6bfebc2d11002ff76b55a701b45dafe4149 (diff)
autofix round2
-rw-r--r--lib/Db/ItemMapper.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Db/ItemMapper.php b/lib/Db/ItemMapper.php
index 0a59675c3..abd57b7c1 100644
--- a/lib/Db/ItemMapper.php
+++ b/lib/Db/ItemMapper.php
@@ -200,7 +200,7 @@ class ItemMapper extends Mapper
}
- private function getOperator($oldestFirst): string
+ private function getOperator(bool $oldestFirst): string
{
if ($oldestFirst) {
return '>';
@@ -249,7 +249,7 @@ class ItemMapper extends Mapper
/**
* @param (int|mixed|null)[] $params
*/
- private function findEntitiesIgnoringNegativeLimit($sql, array $params, $limit): array
+ private function findEntitiesIgnoringNegativeLimit(string $sql, array $params, int $limit): array
{
// ignore limit if negative to offer a way to return all feeds
if ($limit >= 0) {
@@ -343,7 +343,7 @@ class ItemMapper extends Mapper
}
- public function findAllUnreadOrStarred(string $userId): int
+ public function findAllUnreadOrStarred(string $userId): array
{
$params = [$userId, true, true];
$sql = 'AND (`items`.`unread` = ? OR `items`.`starred` = ?) ';