fix: perform bulk message actions #5072
psalm-matrix.yml
on: pull_request
Matrix: static-analysis
static-psalm-analysis-summary
4s
Annotations
6 errors
PossiblyNullArgument:
lib/Controller/MessagesController.php#L909
lib/Controller/MessagesController.php:909:46: PossiblyNullArgument: Argument 1 of OCA\Mail\Contracts\IMailManager::getMessage cannot be null, possibly null value provided (see https://psalm.dev/078)
|
InvalidReturnStatement:
lib/Service/MessageOperationService.php#L42
lib/Service/MessageOperationService.php:42:10: InvalidReturnStatement: The inferred type 'array<array-key, mixed|non-empty-list<array{id: int, uid: int}>>|mixed' does not match the declared return type 'array<int, array<int, array{0: int, 1: int, 2: int}>>' for OCA\Mail\Service\MessageOperationService::groupByMailbox (see https://psalm.dev/128)
|
InvalidArgument:
lib/Service/MessageOperationService.php#L135
lib/Service/MessageOperationService.php:135:56: InvalidArgument: Argument 4 of OCA\Mail\Service\MessageOperationService::generateResult expects array<int, array<array-key, array{id: int, uid: int}>>, but array<int, array<int, array{0: int, 1: int, 2: int}>> provided (see https://psalm.dev/004)
|
InvalidArgument:
lib/Service/MessageOperationService.php#L138
lib/Service/MessageOperationService.php:138:57: InvalidArgument: Argument 4 of OCA\Mail\Service\MessageOperationService::generateResult expects array<int, array<array-key, array{id: int, uid: int}>>, but array<int, array<int, array{0: int, 1: int, 2: int}>> provided (see https://psalm.dev/004)
|
static-psalm-analysis dev-master
Process completed with exit code 2.
|
static-psalm-analysis-summary
Process completed with exit code 1.
|