From 67bbd6bfebc2d11002ff76b55a701b45dafe4149 Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Thu, 7 Jan 2021 07:03:10 +0100 Subject: fix the test Signed-off-by: Benjamin Brahmer --- lib/Db/ItemMapper.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Db') diff --git a/lib/Db/ItemMapper.php b/lib/Db/ItemMapper.php index d4a16614d..0a59675c3 100644 --- a/lib/Db/ItemMapper.php +++ b/lib/Db/ItemMapper.php @@ -51,8 +51,8 @@ class ItemMapper extends Mapper private function makeSelectQuery( string $prependTo = '', - $oldestFirst = false, - $distinctFingerprint = false + bool $oldestFirst = false, + bool $distinctFingerprint = false ): string { if ($oldestFirst) { $ordering = 'ASC'; @@ -343,7 +343,7 @@ class ItemMapper extends Mapper } - public function findAllUnreadOrStarred(string $userId): array + public function findAllUnreadOrStarred(string $userId): int { $params = [$userId, true, true]; $sql = 'AND (`items`.`unread` = ? OR `items`.`starred` = ?) '; -- cgit v1.2.3