diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-03-28 11:13:49 +0200 |
---|---|---|
committer | Côme Chilliet <come.chilliet@nextcloud.com> | 2023-04-03 10:52:35 +0200 |
commit | 5ad045619c0d4010ecf30c1c4fe1e1275e9ab094 (patch) | |
tree | ba3455c0a56da26653fabeda7b26f882bd70f5a4 /lib/private/Files/View.php | |
parent | 0b3dad895fcd87dadb3861bb3842ea8b67b28448 (diff) | |
download | nextcloud-server-5ad045619c0d4010ecf30c1c4fe1e1275e9ab094.tar.gz nextcloud-server-5ad045619c0d4010ecf30c1c4fe1e1275e9ab094.zip |
View needs to return an instance of OC\Files\FileInfo explicitely
Applications are calling methods from the class which are not from the
public interface, and which cannot be added easily to public interface
because Node interface extends FileInfo.
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 | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/private/Files/View.php b/lib/private/Files/View.php index 8f324a60ad6..e864ddef84d 100644 --- a/lib/private/Files/View.php +++ b/lib/private/Files/View.php @@ -1336,7 +1336,7 @@ class View { * @param string $path * @param bool|string $includeMountPoints true to add mountpoint sizes, * 'ext' to add only ext storage mount point sizes. Defaults to true. - * @return \OCP\Files\FileInfo|false False if file does not exist + * @return \OC\Files\FileInfo|false False if file does not exist */ public function getFileInfo($path, $includeMountPoints = true) { $this->assertPathLength($path); @@ -1790,11 +1790,8 @@ class View { /** * Get a fileinfo object for files that are ignored in the cache (part files) - * - * @param string $path - * @return \OCP\Files\FileInfo */ - private function getPartFileInfo($path) { + private function getPartFileInfo(string $path): \OC\Files\FileInfo { $mount = $this->getMount($path); $storage = $mount->getStorage(); $internalPath = $mount->getInternalPath($this->getAbsolutePath($path)); |