Skip to content

feat: store envelopes as list of threads #7521

feat: store envelopes as list of threads

feat: store envelopes as list of threads #7521

Triggered via pull request December 16, 2025 08:53
Status Failure
Total duration 1m 27s
Artifacts

psalm-matrix.yml

on: pull_request
Matrix: static-analysis
static-psalm-analysis-summary
6s
static-psalm-analysis-summary
Fit to window
Zoom out
Zoom in

Annotations

31 errors
InvalidMethodCall: lib/IMAP/PreviewEnhancer.php#L72
lib/IMAP/PreviewEnhancer.php:72:19: InvalidMethodCall: Cannot call method on array<array-key, OCA\Mail\Db\Message> variable $message (see https://psalm.dev/091)
InvalidMethodCall: lib/IMAP/PreviewEnhancer.php#L71
lib/IMAP/PreviewEnhancer.php:71:23: InvalidMethodCall: Cannot call method on array<array-key, OCA\Mail\Db\Message> variable $message (see https://psalm.dev/091)
InvalidArgument: lib/IMAP/PreviewEnhancer.php#L60
lib/IMAP/PreviewEnhancer.php:60:73: InvalidArgument: The second param of the closure passed to array_reduce must take array<array-key, OCA\Mail\Db\Message> but only accepts OCA\Mail\Db\Message (see https://psalm.dev/004)
InvalidReturnType: lib/IMAP/PreviewEnhancer.php#L57
lib/IMAP/PreviewEnhancer.php:57:13: InvalidReturnType: The declared return type 'array<array-key, array<array-key, OCA\Mail\Db\Message>>' for OCA\Mail\IMAP\PreviewEnhancer::process is incorrect, got 'array<array-key, OCA\Mail\Db\Message|array<array-key, OCA\Mail\Db\Message>>' (see https://psalm.dev/011)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1396
lib/Db/MessageMapper.php:1396:5: PossiblyNullArrayOffset: Cannot access value on variable $orderKeys[$key] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1390
lib/Db/MessageMapper.php:1390:4: PossiblyNullArrayOffset: Cannot access value on variable $groups[$root] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1305
lib/Db/MessageMapper.php:1305:5: PossiblyNullArrayOffset: Cannot access value on variable $orderKeys[$key] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1298
lib/Db/MessageMapper.php:1298:4: PossiblyNullArrayOffset: Cannot access value on variable $groups[$root] using possibly null offset null|string (see https://psalm.dev/125)
InvalidReturnStatement: lib/Dashboard/MailWidget.php#L121
lib/Dashboard/MailWidget.php:121:10: InvalidReturnStatement: The inferred type 'array<array-key, array<array-key, OCA\Mail\Db\Message>>' does not match the declared return type 'array<array-key, OCA\Mail\Db\Message>' for OCA\Mail\Dashboard\MailWidget::getEmails (see https://psalm.dev/128)
InvalidReturnType: lib/Dashboard/MailWidget.php#L106
lib/Dashboard/MailWidget.php:106:13: InvalidReturnType: The declared return type 'array<array-key, OCA\Mail\Db\Message>' for OCA\Mail\Dashboard\MailWidget::getEmails is incorrect, got 'array<array-key, array<array-key, OCA\Mail\Db\Message>>' (see https://psalm.dev/011)
InvalidMethodCall: lib/IMAP/PreviewEnhancer.php#L72
lib/IMAP/PreviewEnhancer.php:72:19: InvalidMethodCall: Cannot call method on array<array-key, OCA\Mail\Db\Message> variable $message (see https://psalm.dev/091)
InvalidMethodCall: lib/IMAP/PreviewEnhancer.php#L71
lib/IMAP/PreviewEnhancer.php:71:23: InvalidMethodCall: Cannot call method on array<array-key, OCA\Mail\Db\Message> variable $message (see https://psalm.dev/091)
InvalidArgument: lib/IMAP/PreviewEnhancer.php#L60
lib/IMAP/PreviewEnhancer.php:60:73: InvalidArgument: The second param of the closure passed to array_reduce must take array<array-key, OCA\Mail\Db\Message> but only accepts OCA\Mail\Db\Message (see https://psalm.dev/004)
InvalidReturnType: lib/IMAP/PreviewEnhancer.php#L57
lib/IMAP/PreviewEnhancer.php:57:13: InvalidReturnType: The declared return type 'array<array-key, array<array-key, OCA\Mail\Db\Message>>' for OCA\Mail\IMAP\PreviewEnhancer::process is incorrect, got 'array<array-key, OCA\Mail\Db\Message|array<array-key, OCA\Mail\Db\Message>>' (see https://psalm.dev/011)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1396
lib/Db/MessageMapper.php:1396:5: PossiblyNullArrayOffset: Cannot access value on variable $orderKeys[$key] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1390
lib/Db/MessageMapper.php:1390:4: PossiblyNullArrayOffset: Cannot access value on variable $groups[$root] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1305
lib/Db/MessageMapper.php:1305:5: PossiblyNullArrayOffset: Cannot access value on variable $orderKeys[$key] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1298
lib/Db/MessageMapper.php:1298:4: PossiblyNullArrayOffset: Cannot access value on variable $groups[$root] using possibly null offset null|string (see https://psalm.dev/125)
InvalidReturnStatement: lib/Dashboard/MailWidget.php#L121
lib/Dashboard/MailWidget.php:121:10: InvalidReturnStatement: The inferred type 'array<array-key, array<array-key, OCA\Mail\Db\Message>>' does not match the declared return type 'array<array-key, OCA\Mail\Db\Message>' for OCA\Mail\Dashboard\MailWidget::getEmails (see https://psalm.dev/128)
InvalidReturnType: lib/Dashboard/MailWidget.php#L106
lib/Dashboard/MailWidget.php:106:13: InvalidReturnType: The declared return type 'array<array-key, OCA\Mail\Db\Message>' for OCA\Mail\Dashboard\MailWidget::getEmails is incorrect, got 'array<array-key, array<array-key, OCA\Mail\Db\Message>>' (see https://psalm.dev/011)
InvalidMethodCall: lib/IMAP/PreviewEnhancer.php#L72
lib/IMAP/PreviewEnhancer.php:72:19: InvalidMethodCall: Cannot call method on array<array-key, OCA\Mail\Db\Message> variable $message (see https://psalm.dev/091)
InvalidMethodCall: lib/IMAP/PreviewEnhancer.php#L71
lib/IMAP/PreviewEnhancer.php:71:23: InvalidMethodCall: Cannot call method on array<array-key, OCA\Mail\Db\Message> variable $message (see https://psalm.dev/091)
InvalidArgument: lib/IMAP/PreviewEnhancer.php#L60
lib/IMAP/PreviewEnhancer.php:60:73: InvalidArgument: The second param of the closure passed to array_reduce must take array<array-key, OCA\Mail\Db\Message> but only accepts OCA\Mail\Db\Message (see https://psalm.dev/004)
InvalidReturnType: lib/IMAP/PreviewEnhancer.php#L57
lib/IMAP/PreviewEnhancer.php:57:13: InvalidReturnType: The declared return type 'array<array-key, array<array-key, OCA\Mail\Db\Message>>' for OCA\Mail\IMAP\PreviewEnhancer::process is incorrect, got 'array<array-key, OCA\Mail\Db\Message|array<array-key, OCA\Mail\Db\Message>>' (see https://psalm.dev/011)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1396
lib/Db/MessageMapper.php:1396:5: PossiblyNullArrayOffset: Cannot access value on variable $orderKeys[$key] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1390
lib/Db/MessageMapper.php:1390:4: PossiblyNullArrayOffset: Cannot access value on variable $groups[$root] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1305
lib/Db/MessageMapper.php:1305:5: PossiblyNullArrayOffset: Cannot access value on variable $orderKeys[$key] using possibly null offset null|string (see https://psalm.dev/125)
PossiblyNullArrayOffset: lib/Db/MessageMapper.php#L1298
lib/Db/MessageMapper.php:1298:4: PossiblyNullArrayOffset: Cannot access value on variable $groups[$root] using possibly null offset null|string (see https://psalm.dev/125)
InvalidReturnStatement: lib/Dashboard/MailWidget.php#L121
lib/Dashboard/MailWidget.php:121:10: InvalidReturnStatement: The inferred type 'array<array-key, array<array-key, OCA\Mail\Db\Message>>' does not match the declared return type 'array<array-key, OCA\Mail\Db\Message>' for OCA\Mail\Dashboard\MailWidget::getEmails (see https://psalm.dev/128)
InvalidReturnType: lib/Dashboard/MailWidget.php#L106
lib/Dashboard/MailWidget.php:106:13: InvalidReturnType: The declared return type 'array<array-key, OCA\Mail\Db\Message>' for OCA\Mail\Dashboard\MailWidget::getEmails is incorrect, got 'array<array-key, array<array-key, OCA\Mail\Db\Message>>' (see https://psalm.dev/011)
static-psalm-analysis-summary
Process completed with exit code 1.