diff --git a/composer.json b/composer.json index 9b73e2a6e1..fa30d1ceec 100644 --- a/composer.json +++ b/composer.json @@ -51,7 +51,7 @@ "psr/log": "^1.0.4|^2|^3" }, "require-dev": { - "psalm/phar": "^5.26.1", + "psalm/phar": "^7.0.0-rc10", "roave/security-advisories": "dev-master" }, "autoload": { diff --git a/composer.lock b/composer.lock index d1fb8f6f5b..e3ab027d42 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "e55b463b6974003b8d9140953cd142a8", + "content-hash": "0c918e376ef0aee9bbec34ead9d67331", "packages": [ { "name": "amphp/amp", @@ -3611,20 +3611,20 @@ "packages-dev": [ { "name": "psalm/phar", - "version": "5.26.1", + "version": "7.0.0-rc10", "source": { "type": "git", "url": "https://github.com/psalm/phar.git", - "reference": "8a38e7ad04499a0ccd2c506fd1da6fc01fff4547" + "reference": "fba3d418bd65d2b1a47327ba5ea6b693e8feba0d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/psalm/phar/zipball/8a38e7ad04499a0ccd2c506fd1da6fc01fff4547", - "reference": "8a38e7ad04499a0ccd2c506fd1da6fc01fff4547", + "url": "https://api.github.com/repos/psalm/phar/zipball/fba3d418bd65d2b1a47327ba5ea6b693e8feba0d", + "reference": "fba3d418bd65d2b1a47327ba5ea6b693e8feba0d", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^8.2" }, "conflict": { "vimeo/psalm": "*" @@ -3640,9 +3640,10 @@ "description": "Composer-based Psalm Phar", "support": { "issues": "https://github.com/psalm/phar/issues", - "source": "https://github.com/psalm/phar/tree/5.26.1" + "source": "https://github.com/psalm/phar/tree/7.0.0-rc10" }, - "time": "2024-09-09T16:22:43+00:00" + "time": "2026-10-23T14:39:05+00:00", + "published-time": "2026-10-23T14:39:22+00:00" }, { "name": "roave/security-advisories", @@ -4220,6 +4221,7 @@ "minimum-stability": "stable", "stability-flags": { "gravatarphp/gravatar": 20, + "psalm/phar": 5, "roave/security-advisories": 20 }, "prefer-stable": false, @@ -4232,5 +4234,5 @@ "platform-overrides": { "php": "8.2" }, - "plugin-api-version": "2.9.0" + "plugin-api-version": "2.11.0" } diff --git a/lib/Migration/Version5007Date20260108124422.php b/lib/Migration/Version5007Date20260108124422.php index e0aa1b5bca..4cfd434587 100644 --- a/lib/Migration/Version5007Date20260108124422.php +++ b/lib/Migration/Version5007Date20260108124422.php @@ -88,6 +88,7 @@ private function removeInconsistentMailboxEntries(string $mailboxType): void { * @param string $mailboxType * @return void */ + /** @psalm-suppress MissingPureAnnotation only flagged against some OCP versions */ private function addMailboxKey(Table|ITable $accountsTable, Table|ITable $mailboxesTable, string $mailboxType): void { /** @var non-empty-lowercase-string $column */ $column = $mailboxType . '_mailbox_id'; diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index 173ba722df..f3f2c5f07a 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -1,130 +1,1741 @@ - + + + + + + + personal]]> + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - _data[$mailbox]]]> - _data[$mailbox]]]> - _data[$mbox]]]> - _data[$mailbox]]]> - _slicemap[$mailbox]]]> - _slicemap[$mailbox]]]> - _slicemap[$mailbox]['s']]]> - _slicemap[$mbox]]]> - _slicemap[$mailbox]]]> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getLabel() : '']]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getRecipients()]]> getRecipients()]]> getRecipients()]]> getRecipients()]]> + + + + + + + + + + + + + + + + + + + + + + - - getRecipients()]]> - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getReferences()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getMessageId()]]> getMessageId()]]> getMessageId()]]> - getPreviewText()]]> - getLabel()]]> - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getSieveUser()]]> - getEMailAddress()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - 'error', - 'message' => $message, - 'data' => $data, - 'code' => $code, - ], - $status - )]]> - 'fail', - 'data' => $data, - ], - $status - )]]> - 'success', - 'data' => $data, - ], - $status - )]]> - - - - - - + + + + getCode()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -133,16 +1744,100 @@ getDelimiter()]]> + + + + + + + + + + + + + + getMailAccount()->getInboundPassword()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -158,39 +1853,230 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getBody()]]> getBody()]]> + + + + + + + + + + + + + + + + + + + + + + + + + getBody()]]> getBody()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - getRecipients()]]> - + + + @@ -201,55 +2087,697 @@ getSnoozeMailboxId()]]> getTrashMailboxId()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getMessageId()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - toIPv4() ?? $parsedIp]]> - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ]]> + + + + + + + + + + + + + + + + + + + + + + + + + + getOutboundPassword()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getInReplyToMessageId()]]> getMyAcls()]]> - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getRecipients()]]> getRecipients()]]> + + + - - getRaw(false)]]> - + + + + + + + + + + @@ -258,6 +2786,14 @@ getAttachments()]]> + + + + + + + + @@ -266,73 +2802,538 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + + + + + + @@ -340,6 +3341,9 @@ + + + @@ -347,57 +3351,257 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - getMessageId()]]> - getMessageId()]]> - + + + + + + + + + + + + + + + + + + + + + + + + - - - getRaw(false)]]> - getRaw(false)]]> - getRaw(false)]]> - - - getAliasId()]]> - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + getEnd()]]> getStart()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + + + + + - - - - - - - - - - + + + + + + + + + + + + + @@ -409,43 +3613,173 @@ userManager->getDisplayName($user->getUID())]]> userManager->getDisplayName($user->getUID())]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - flag]]> - - - flag]]> - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + getMailAccount()->getSieveHost()]]> getMailAccount()->getSievePort()]]> + + + + + + + getPrivateKey()]]> getPrivateKey()]]> + + + + + @@ -454,36 +3788,137 @@ getThreadRootId()]]> getThreadRootId()]]> + + + + + + + + + + + + - - - getSyncChangedToken()]]> getSyncNewToken()]]> getSyncVanishedToken()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - getSmimeCertificateId()]]> - getSmimeCertificateId()]]> getAttachments()]]> getRecipients()]]> + + + + + + + + + + + + + + + + + + googleIntegration->getClientId()]]> microsoftIntegration->getClientId()]]> microsoftIntegration->getTenantId()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -492,5 +3927,125 @@ getMailAccount()->getSieveSslMode()]]> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +