Skip to content

Commit

Permalink
fix(psalm): Suppress wrong error message
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin committed Sep 17, 2024
1 parent 2ae5d98 commit afa395a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Mount/GroupFolderStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit afa395a

Please sign in to comment.