feat: OCC and OCS Calendar Import/Export #53916
Annotations
10 errors
Psalm:
apps/dav/lib/CalDAV/CalendarImpl.php#L277
apps/dav/lib/CalDAV/CalendarImpl.php:277:13: MoreSpecificReturnType: The declared return type 'Generator<mixed, Sabre\VObject\Component\VCalendar, mixed, mixed>' for OCA\DAV\CalDAV\CalendarImpl::export is more specific than the inferred return type 'Generator<int, Sabre\VObject\Document, mixed, void>' (see https://psalm.dev/070)
|
Psalm:
apps/dav/lib/CalDAV/CalendarImpl.php#L297
apps/dav/lib/CalDAV/CalendarImpl.php:297:79: InvalidReturnType: The declared return type 'array<string, array<string, string>>' for OCA\DAV\CalDAV\CalendarImpl::import is incorrect, got 'array<array-key, array{errors?: non-empty-array<array-key, mixed>, outcome: 'created'|'error'|'exists'|'updated'}>' (see https://psalm.dev/011)
|
Psalm:
apps/dav/lib/CalDAV/CalendarImpl.php#L359
apps/dav/lib/CalDAV/CalendarImpl.php:359:10: InvalidReturnStatement: The inferred type 'array<array-key, array{errors?: non-empty-array<array-key, mixed>, outcome: 'created'|'error'|'exists'|'updated'}>' does not match the declared return type 'array<string, array<string, string>>' for OCA\DAV\CalDAV\CalendarImpl::import (see https://psalm.dev/128)
|
Psalm:
apps/dav/lib/CalDAV/Import/ImportService.php#L37
apps/dav/lib/CalDAV/Import/ImportService.php:37:104: InvalidReturnType: Not all code paths of OCA\DAV\CalDAV\Import\ImportService::import end in a return statement, return type array<array-key, mixed> expected (see https://psalm.dev/011)
|
Psalm:
apps/dav/lib/CalDAV/Import/ImportService.php#L74
apps/dav/lib/CalDAV/Import/ImportService.php:74:8: TypeDoesNotContainType: '\n' cannot be identical to bool (see https://psalm.dev/056)
|
Psalm:
apps/dav/lib/CalDAV/Import/ImportService.php#L74
apps/dav/lib/CalDAV/Import/ImportService.php:74:40: TypeDoesNotContainType: '\r\n' cannot be identical to bool (see https://psalm.dev/056)
|
Psalm:
apps/dav/lib/CalDAV/Import/ImportService.php#L100
apps/dav/lib/CalDAV/Import/ImportService.php:100:16: UndefinedVariable: Cannot find referenced variable $timezone (see https://psalm.dev/024)
|
Psalm:
apps/dav/lib/CalDAV/Import/ImportService.php#L148
apps/dav/lib/CalDAV/Import/ImportService.php:148:16: UndefinedVariable: Cannot find referenced variable $timezone (see https://psalm.dev/024)
|
Psalm:
apps/dav/lib/Command/ImportCalendar.php#L86
apps/dav/lib/Command/ImportCalendar.php:86:19: UndefinedInterfaceMethod: Method (OCP\Calendar\ICalendar&OCP\Calendar\ICalendarImport)::isWritable does not exist (see https://psalm.dev/181)
|
Psalm:
apps/dav/lib/Command/ImportCalendar.php#L195
apps/dav/lib/Command/ImportCalendar.php:195:34: InvalidOperand: Cannot perform a numeric operation with non-numeric types string and string (see https://psalm.dev/058)
|
Loading