diff options
author | Benjamin Brahmer <info@b-brahmer.de> | 2021-01-07 07:03:10 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-01-08 22:45:10 +0100 |
commit | 67bbd6bfebc2d11002ff76b55a701b45dafe4149 (patch) | |
tree | 6eeccad19675fc186a82c9df85a3ebefdb3e202a /lib/Db | |
parent | 7180e11bdb3f27a1a282a137ca95279b39944b5b (diff) |
fix the test
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Diffstat (limited to 'lib/Db')
-rw-r--r-- | lib/Db/ItemMapper.php | 6 |
1 files changed, 3 insertions, 3 deletions
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` = ?) '; |