Skip to content

Commit d0c888f

Browse files
miaulalalabackportbot[bot]
authored andcommitted
fix(psalm): return empty array if query returns no results
Signed-off-by: Anna Larch <anna@nextcloud.com>
1 parent 059cd22 commit d0c888f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Data.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ public function getActivitySince(string $user, int $since, bool $byOthers) {
519519
$query->andWhere($query->expr()->neq('user', $nameParam));
520520
}
521521

522-
return $query->executeQuery()->fetch();
522+
return $query->executeQuery()->fetch() ?: [];
523523
}
524524

525525
/**

0 commit comments

Comments
 (0)