From 3c8cb811e174030bf06c61440041108a74cd4c31 Mon Sep 17 00:00:00 2001 From: provokateurin Date: Fri, 20 Sep 2024 11:30:50 +0200 Subject: [PATCH] fix(psalm): Fix falsable return for getOwner() Signed-off-by: provokateurin --- composer.lock | 8 ++++---- lib/Mount/GroupFolderStorage.php | 4 ---- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/composer.lock b/composer.lock index d32cd11e7..4ab61644e 100644 --- a/composer.lock +++ b/composer.lock @@ -71,12 +71,12 @@ "source": { "type": "git", "url": "https://github.com/nextcloud-deps/ocp.git", - "reference": "bb4493dcc2a39b778c225017a97807a815298b07" + "reference": "4f352c7125d27dc08f08a05a108bf9920536acaf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/bb4493dcc2a39b778c225017a97807a815298b07", - "reference": "bb4493dcc2a39b778c225017a97807a815298b07", + "url": "https://api.github.com/repos/nextcloud-deps/ocp/zipball/4f352c7125d27dc08f08a05a108bf9920536acaf", + "reference": "4f352c7125d27dc08f08a05a108bf9920536acaf", "shasum": "" }, "require": { @@ -108,7 +108,7 @@ "issues": "https://github.com/nextcloud-deps/ocp/issues", "source": "https://github.com/nextcloud-deps/ocp/tree/master" }, - "time": "2024-09-17T00:34:04+00:00" + "time": "2024-09-20T00:41:25+00:00" }, { "name": "psr/clock", diff --git a/lib/Mount/GroupFolderStorage.php b/lib/Mount/GroupFolderStorage.php index b018d0a64..b05927a37 100644 --- a/lib/Mount/GroupFolderStorage.php +++ b/lib/Mount/GroupFolderStorage.php @@ -37,10 +37,6 @@ 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) {