aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public/Files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-11-17 16:42:29 +0100
committerRobin Appelman <robin@icewind.nl>2021-12-02 17:35:10 +0100
commitdb2dcbfe132ffdbf7aced0905d9dec9ad09e26c2 (patch)
treecc40e45a7cceb502d1c81052913a7dec523eb96b /lib/public/Files
parent89bc9f1b77e42c1b5bde43afb3bee0f917fda441 (diff)
downloadnextcloud-server-db2dcbfe132ffdbf7aced0905d9dec9ad09e26c2.tar.gz
nextcloud-server-db2dcbfe132ffdbf7aced0905d9dec9ad09e26c2.zip
code checker fixes for instanceOfStorage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/Files')
-rw-r--r--lib/public/Files/IHomeStorage.php4
-rw-r--r--lib/public/Files/Storage/IDisableEncryptionStorage.php2
-rw-r--r--lib/public/Files/Storage/IStorage.php3
3 files changed, 7 insertions, 2 deletions
diff --git a/lib/public/Files/IHomeStorage.php b/lib/public/Files/IHomeStorage.php
index 0f10d599148..7eb3ffc4a24 100644
--- a/lib/public/Files/IHomeStorage.php
+++ b/lib/public/Files/IHomeStorage.php
@@ -26,10 +26,12 @@
namespace OCP\Files;
+use OCP\Files\Storage\IStorage;
+
/**
* Interface IHomeStorage
*
* @since 7.0.0
*/
-interface IHomeStorage {
+interface IHomeStorage extends IStorage {
}
diff --git a/lib/public/Files/Storage/IDisableEncryptionStorage.php b/lib/public/Files/Storage/IDisableEncryptionStorage.php
index 11d71549cac..7b70aa3e47f 100644
--- a/lib/public/Files/Storage/IDisableEncryptionStorage.php
+++ b/lib/public/Files/Storage/IDisableEncryptionStorage.php
@@ -28,5 +28,5 @@ namespace OCP\Files\Storage;
*
* @since 16.0.0
*/
-interface IDisableEncryptionStorage {
+interface IDisableEncryptionStorage extends IStorage {
}
diff --git a/lib/public/Files/Storage/IStorage.php b/lib/public/Files/Storage/IStorage.php
index 21272f216c7..f42eb81bfec 100644
--- a/lib/public/Files/Storage/IStorage.php
+++ b/lib/public/Files/Storage/IStorage.php
@@ -356,9 +356,12 @@ interface IStorage {
/**
* Check if the storage is an instance of $class or is a wrapper for a storage that is an instance of $class
*
+ * @template T of IStorage
* @param string $class
+ * @psalm-param class-string<T> $class
* @return bool
* @since 9.0.0
+ * @psalm-assert-if-true T $this
*/
public function instanceOfStorage($class);