Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-01-29 18:16:03 +0300
committerRobin Appelman <robin@icewind.nl>2021-03-23 14:25:37 +0300
commit7995c6e1dce83becf1e948de960894d481775a6f (patch)
treef36b77877bbc3c0c2e81d840e0eff20613e280a1
parenta219fa587af77bcb5f9d0a9a9cd3b0e0134153ff (diff)
dont return private storage interface from public mount interface
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files_sharing/lib/SharedStorage.php5
-rw-r--r--lib/private/Files/Storage/Storage.php2
-rw-r--r--lib/private/Files/Storage/Wrapper/Jail.php2
-rw-r--r--lib/private/Files/Storage/Wrapper/Wrapper.php2
-rw-r--r--lib/public/Files/Mount/IMountPoint.php2
-rw-r--r--lib/public/Files/Storage/IStorage.php4
6 files changed, 7 insertions, 10 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php
index eb0af419983..bfd3f3da482 100644
--- a/apps/files_sharing/lib/SharedStorage.php
+++ b/apps/files_sharing/lib/SharedStorage.php
@@ -369,11 +369,6 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
return $this->superShare->getNodeType();
}
- /**
- * @param string $path
- * @param null $storage
- * @return Cache
- */
public function getCache($path = '', $storage = null) {
if ($this->cache) {
return $this->cache;
diff --git a/lib/private/Files/Storage/Storage.php b/lib/private/Files/Storage/Storage.php
index 73793aa31fb..94f1ee62430 100644
--- a/lib/private/Files/Storage/Storage.php
+++ b/lib/private/Files/Storage/Storage.php
@@ -38,7 +38,7 @@ interface Storage extends \OCP\Files\Storage {
* get a cache instance for the storage
*
* @param string $path
- * @param \OC\Files\Storage\Storage (optional) the storage to pass to the cache
+ * @param \OC\Files\Storage\Storage|null (optional) the storage to pass to the cache
* @return \OC\Files\Cache\Cache
*/
public function getCache($path = '', $storage = null);
diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php
index 276f00af33c..aa6cbf7e40c 100644
--- a/lib/private/Files/Storage/Wrapper/Jail.php
+++ b/lib/private/Files/Storage/Wrapper/Jail.php
@@ -396,7 +396,7 @@ class Jail extends Wrapper {
* get a cache instance for the storage
*
* @param string $path
- * @param \OC\Files\Storage\Storage (optional) the storage to pass to the cache
+ * @param \OC\Files\Storage\Storage|null (optional) the storage to pass to the cache
* @return \OC\Files\Cache\Cache
*/
public function getCache($path = '', $storage = null) {
diff --git a/lib/private/Files/Storage/Wrapper/Wrapper.php b/lib/private/Files/Storage/Wrapper/Wrapper.php
index cffe610c6c2..d45d5e9f9f0 100644
--- a/lib/private/Files/Storage/Wrapper/Wrapper.php
+++ b/lib/private/Files/Storage/Wrapper/Wrapper.php
@@ -386,7 +386,7 @@ class Wrapper implements \OC\Files\Storage\Storage, ILockingStorage, IWriteStrea
* get a cache instance for the storage
*
* @param string $path
- * @param \OC\Files\Storage\Storage (optional) the storage to pass to the cache
+ * @param \OC\Files\Storage\Storage|null (optional) the storage to pass to the cache
* @return \OC\Files\Cache\Cache
*/
public function getCache($path = '', $storage = null) {
diff --git a/lib/public/Files/Mount/IMountPoint.php b/lib/public/Files/Mount/IMountPoint.php
index 7315fd97035..9b55c764451 100644
--- a/lib/public/Files/Mount/IMountPoint.php
+++ b/lib/public/Files/Mount/IMountPoint.php
@@ -48,7 +48,7 @@ interface IMountPoint {
/**
* Get the storage that is mounted
*
- * @return \OC\Files\Storage\Storage
+ * @return \OCP\Files\Storage\IStorage
* @since 8.0.0
*/
public function getStorage();
diff --git a/lib/public/Files/Storage/IStorage.php b/lib/public/Files/Storage/IStorage.php
index 5e70e319c40..ee26dd9c66b 100644
--- a/lib/public/Files/Storage/IStorage.php
+++ b/lib/public/Files/Storage/IStorage.php
@@ -433,10 +433,12 @@ interface IStorage {
public function getOwner($path);
/**
+ * @param string $path
+ * @param IStorage|null $storage
* @return ICache
* @since 9.0.0
*/
- public function getCache();
+ public function getCache($path = '', $storage = null);
/**
* @return IPropagator