diff options
author | provokateurin <kate@provokateurin.de> | 2024-09-16 16:00:30 +0200 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-09-17 10:10:50 +0200 |
commit | 8ca6fcace7dc22230a7afe84936ca01470f50d00 (patch) | |
tree | fd6867b712621f7a9969bd190ef3b2f2499984d3 /lib/private/Files/Storage/Common.php | |
parent | c256518ab3cb61d046ee10edf1c3b18218ee8ff6 (diff) | |
download | nextcloud-server-8ca6fcace7dc22230a7afe84936ca01470f50d00.tar.gz nextcloud-server-8ca6fcace7dc22230a7afe84936ca01470f50d00.zip |
fix(Storage): Document getOwner() can return false
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib/private/Files/Storage/Common.php')
-rw-r--r-- | lib/private/Files/Storage/Common.php | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/private/Files/Storage/Common.php b/lib/private/Files/Storage/Common.php index eb93ab89bc7..181da79cebe 100644 --- a/lib/private/Files/Storage/Common.php +++ b/lib/private/Files/Storage/Common.php @@ -390,13 +390,7 @@ abstract class Common implements Storage, ILockingStorage, IWriteStreamStorage { return $this->getCache($storage)->getStorageCache(); } - /** - * get the owner of a path - * - * @param string $path The path to get the owner - * @return string|false uid or false - */ - public function getOwner($path) { + public function getOwner($path): string|false { if ($this->owner === null) { $this->owner = \OC_User::getUser(); } |