From 6901e04714902db2ed89e47440b794dbbaf723f7 Mon Sep 17 00:00:00 2001 From: Kostiantyn Miakshyn Date: Thu, 25 Jun 2026 22:15:11 +0200 Subject: [PATCH] fix: Fix psalm Signed-off-by: Kostiantyn Miakshyn --- lib/CurrentUser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/CurrentUser.php b/lib/CurrentUser.php index 40256121a..7b41c088c 100644 --- a/lib/CurrentUser.php +++ b/lib/CurrentUser.php @@ -60,7 +60,7 @@ public function getUserIdentifier() { public function getUID() { $user = $this->userSession->getUser(); if ($user instanceof IUser) { - return (string)$user->getUID(); + return $user->getUID(); } return null; } @@ -72,7 +72,7 @@ public function getUID() { public function getCloudId() { $user = $this->userSession->getUser(); if ($user instanceof IUser) { - return (string)$user->getCloudId(); + return $user->getCloudId(); } else { return $this->getCloudIDFromToken(); }