Skip to content

Commit

Permalink
Merge pull request #3259 from nextcloud/fix/psalm/get-owern-falsable-…
Browse files Browse the repository at this point in the history
…return-type
  • Loading branch information
provokateurin authored Sep 20, 2024
2 parents cdd9d53 + 3c8cb81 commit 7ebc369
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 7ebc369

Please sign in to comment.