Skip to content

Commit

Permalink
fix(psalm): Fix falsable return for getOwner()
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin committed Sep 20, 2024
1 parent 64357f8 commit 3c8cb81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 4 additions & 4 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions lib/Mount/GroupFolderStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 3c8cb81

Please sign in to comment.