diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-03-13 18:59:16 +0100 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-04-03 10:52:34 +0200 |
commit | ea05544213b6d472338684e9c7bae66f68453c58 (patch) | |
tree | 809724b54187a4d21fbe967b38b10fc4cb4ca38a /lib/private/Files/View.php | |
parent | f974281ac9a086004c7e971f3585ed8aa21d194d (diff) | |
download | nextcloud-server-ea05544213b6d472338684e9c7bae66f68453c58.tar.gz nextcloud-server-ea05544213b6d472338684e9c7bae66f68453c58.zip |
Fix return type of methods returning false on error
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'lib/private/Files/View.php')
-rw-r--r-- | lib/private/Files/View.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 4ee44b995b3..fd264a77cba 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -223,7 +223,7 @@ class View { * * @param string $path */ - public function getLocalFile($path): string|bool { + public function getLocalFile($path): string|false { $parent = substr($path, 0, strrpos($path, '/') ?: 0); $path = $this->getAbsolutePath($path); [$storage, $internalPath] = Filesystem::resolvePath($path); @@ -333,7 +333,7 @@ class View { /** * @param string $path - * @return resource + * @return resource|false */ public function opendir($path) { return $this->basicOperation('opendir', $path, ['read']); @@ -1680,14 +1680,14 @@ class View { * get the ETag for a file or folder * * @param string $path - * @return string + * @return string|false */ public function getETag($path) { [$storage, $internalPath] = $this->resolvePath($path); if ($storage) { return $storage->getETag($internalPath); } else { - return null; + return false; } } |