From afa395a6330f88512a8bf56bbab54681f1884de3 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Tue, 17 Sep 2024 17:03:46 +0200 Subject: [PATCH] fix(psalm): Suppress wrong error message Signed-off-by: provokateurin --- lib/Mount/GroupFolderStorage.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Mount/GroupFolderStorage.php b/lib/Mount/GroupFolderStorage.php index 065d9537b..7bc54835e 100644 --- a/lib/Mount/GroupFolderStorage.php +++ b/lib/Mount/GroupFolderStorage.php @@ -34,6 +34,10 @@ public function getFolderId(): int { return $this->folderId; } + /** + * @inheritDoc + * @psalm-suppress FalsableReturnStatement Says the return type is 'string' which does not allow false, but this is completely wrong. + */ public function getOwner($path): string|false { $user = $this->userSession->getUser(); if ($user !== null) {