aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-08 17:47:22 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-01-11 14:02:15 +0100
commit95ea6188dc43aaccd648a9bcdd1a3de77e4233c9 (patch)
tree5b392901dba729229e934132e398fa8edd1800d8 /apps
parenteee9f1eec417c9bb976046e4114d3df943da62e1 (diff)
downloadnextcloud-server-95ea6188dc43aaccd648a9bcdd1a3de77e4233c9.tar.gz
nextcloud-server-95ea6188dc43aaccd648a9bcdd1a3de77e4233c9.zip
Suppress or fix psalm errors related to InvalidTokenException
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps')
-rw-r--r--apps/settings/lib/Controller/AuthSettingsController.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings/lib/Controller/AuthSettingsController.php b/apps/settings/lib/Controller/AuthSettingsController.php
index cfff6582074..9b21c4bc363 100644
--- a/apps/settings/lib/Controller/AuthSettingsController.php
+++ b/apps/settings/lib/Controller/AuthSettingsController.php
@@ -293,7 +293,7 @@ class AuthSettingsController extends Controller {
$token = $e->getToken();
}
if ($token->getUID() !== $this->uid) {
- /* We have to throw the OC version so both OC and OCP catches catch it */
+ /** @psalm-suppress DeprecatedClass We have to throw the OC version so both OC and OCP catches catch it */
throw new OcInvalidTokenException('This token does not belong to you!');
}
return $token;