Skip to content

Commit 6408f29

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 6f030b0 commit 6408f29

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
@@ -437,7 +437,7 @@ public function getActivitySince(string $user, int $since, bool $byOthers) {
437437
$query->andWhere($query->expr()->neq('user', $nameParam));
438438
}
439439

440-
return $query->executeQuery()->fetch();
440+
return $query->executeQuery()->fetch() ?: [];
441441
}
442442

443443
/**

0 commit comments

Comments
 (0)