Skip to content

refactor: Consolidate account classes #4466

refactor: Consolidate account classes

refactor: Consolidate account classes #4466

Triggered via pull request September 17, 2024 07:05
Status Failure
Total duration 1m 46s
Artifacts

psalm-matrix.yml

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

Annotations

11 errors
UndefinedClass: lib/BackgroundJob/SyncJob.php#L31
lib/BackgroundJob/SyncJob.php:31:10: UndefinedClass: Class, interface or enum named OCA\Mail\Service\Sync\ImapToDbSynchronizer does not exist (see https://psalm.dev/019)
UndefinedClass: lib/BackgroundJob/SyncJob.php#L40
lib/BackgroundJob/SyncJob.php:40:3: UndefinedClass: Class, interface or enum named OCA\Mail\Service\Sync\ImapToDbSynchronizer does not exist (see https://psalm.dev/019)
UndefinedClass: lib/BackgroundJob/SyncJob.php#L93
lib/BackgroundJob/SyncJob.php:93:4: UndefinedClass: Class, interface or enum named OCA\Mail\Service\Sync\ImapToDbSynchronizer does not exist (see https://psalm.dev/019)
InvalidArgument: lib/Controller/AccountsController.php#L181
lib/Controller/AccountsController.php:181:5: InvalidArgument: Argument 1 of OCA\Mail\Http\JsonResponse::success expects JsonSerializable|array<array-key, mixed>|bool|null|string, but OCA\Mail\Db\MailAccount provided (see https://psalm.dev/004)
InvalidArgument: lib/Controller/AccountsController.php#L402
lib/Controller/AccountsController.php:402:4: InvalidArgument: Argument 1 of OCA\Mail\Http\JsonResponse::success expects JsonSerializable|array<array-key, mixed>|bool|null|string, but OCA\Mail\Db\MailAccount provided (see https://psalm.dev/004)
PossiblyNullArgument: lib/IMAP/IMAPClientFactory.php#L75
lib/IMAP/IMAPClientFactory.php:75:48: PossiblyNullArgument: Argument 1 of OCP\Security\ICrypto::decrypt cannot be null, possibly null value provided (see https://psalm.dev/078)
InvalidArgument: lib/Provider/MailProvider.php#L131
lib/Provider/MailProvider.php:131:46: InvalidArgument: Argument 2 of OCA\Mail\Provider\MailProvider::serviceFromAccount expects OCA\Mail\Db\MailAccount, but OCA\Mail\Service\Account provided (see https://psalm.dev/004)
UndefinedDocblockClass: lib/Service/AccountService.php#L85
lib/Service/AccountService.php:85:13: UndefinedDocblockClass: Docblock-defined class, interface or enum named OCA\Mail\Service\Account does not exist (see https://psalm.dev/200)
PossiblyNullArgument: lib/Service/SieveService.php#L73
lib/Service/SieveService.php:73:58: PossiblyNullArgument: Argument 3 of OCA\Mail\Exception\CouldNotConnectException::__construct cannot be null, possibly null value provided (see https://psalm.dev/078)
PossiblyNullArgument: lib/Service/SieveService.php#L73
lib/Service/SieveService.php:73:84: PossiblyNullArgument: Argument 4 of OCA\Mail\Exception\CouldNotConnectException::__construct cannot be null, possibly null value provided (see https://psalm.dev/078)
static-psalm-analysis-summary
Process completed with exit code 1.