mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 23:34:22 -04:00
chore: Fix small psalm errors related to documented return types
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
9792090d2e
commit
82e593b83b
3 changed files with 4 additions and 4 deletions
|
|
@ -2347,7 +2347,7 @@ class CalDavBackend extends AbstractBackend implements SyncSupport, Subscription
|
|||
* @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';
|
||||
|
|
|
|||
|
|
@ -112,8 +112,8 @@ class ProviderUserAssignmentDao {
|
|||
|
||||
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);
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ interface IResult {
|
|||
/**
|
||||
* @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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue