Skip to content

Commit

Permalink
chore: Fix small psalm errors related to documented return types
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed May 6, 2024
1 parent 9792090 commit 82e593b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion apps/dav/lib/CalDAV/CalDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -2347,7 +2347,7 @@ public function getCalendarObjectById(string $principalUri, int $id): ?array {
* @param int $syncLevel
* @param int|null $limit
* @param int $calendarType
* @return array
* @return ?array
*/
public function getChangesForCalendar($calendarId, $syncToken, $syncLevel, $limit = null, $calendarType = self::CALENDAR_TYPE_CALENDAR) {
$table = $calendarType === self::CALENDAR_TYPE_CALENDAR ? 'calendars': 'calendarsubscriptions';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public function deleteByUser(string $uid): array {

return array_map(function (array $row) {
return [
'provider_id' => $row['provider_id'],
'uid' => $row['uid'],
'provider_id' => (string) $row['provider_id'],
'uid' => (string) $row['uid'],
'enabled' => (int) $row['enabled'] === 1,
];
}, $rows);
Expand Down
2 changes: 1 addition & 1 deletion lib/public/DB/IResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function fetch(int $fetchMode = PDO::FETCH_ASSOC);
/**
* @param int $fetchMode (one of PDO::FETCH_ASSOC, PDO::FETCH_NUM or PDO::FETCH_COLUMN (2, 3 or 7)
*
* @return mixed[]
* @return list<mixed>
*
* @since 21.0.0
*/
Expand Down

0 comments on commit 82e593b

Please sign in to comment.