aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Common.php
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-09-16 16:00:30 +0200
committerprovokateurin <kate@provokateurin.de>2024-09-17 10:10:50 +0200
commit8ca6fcace7dc22230a7afe84936ca01470f50d00 (patch)
treefd6867b712621f7a9969bd190ef3b2f2499984d3 /lib/private/Files/Storage/Common.php
parentc256518ab3cb61d046ee10edf1c3b18218ee8ff6 (diff)
downloadnextcloud-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.php8
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();
}