Skip to content

Commit

Permalink
fixup! Fix: perform bulk message actions
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski committed Dec 18, 2024
1 parent 8a4525e commit bdfe6f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/MessageOperationService.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(
*
* @param array<array{0:int,1:int,2:int}> $collection
*
* @return array<int,array<{id;int,uid:int}>>
* @return array<int,array{id:int,uid:int}>
*/
protected function groupByMailbox(array $collection): array {
return array_reduce($collection, function ($carry, $pair) {

Check failure on line 42 in lib/Service/MessageOperationService.php

View workflow job for this annotation

GitHub Actions / static-psalm-analysis dev-master

InvalidReturnStatement

lib/Service/MessageOperationService.php:42:10: InvalidReturnStatement: The inferred type 'array<array-key, mixed|non-empty-list<array{id: mixed, uid: mixed}>>|mixed' does not match the declared return type 'array<int, array{id: int, uid: int}>' for OCA\Mail\Service\MessageOperationService::groupByMailbox (see https://psalm.dev/128)
Expand Down

0 comments on commit bdfe6f2

Please sign in to comment.