aboutsummaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2021-11-16 18:06:46 +0100
committerRobin Appelman <robin@icewind.nl>2021-12-02 17:34:53 +0100
commitf93061e344b5bb92aa8c32dcc9fd68994b8645ef (patch)
tree1747730cbc224849e8951e2bd177e1bfd42fa0fe /lib/public
parent17c901bde06c5126da0c0151dafbe926e60e3261 (diff)
downloadnextcloud-server-f93061e344b5bb92aa8c32dcc9fd68994b8645ef.tar.gz
nextcloud-server-f93061e344b5bb92aa8c32dcc9fd68994b8645ef.zip
teach psalm about `Storage::instanceOfStorage`
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/Storage.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/public/Files/Storage.php b/lib/public/Files/Storage.php
index afc735c7829..0a1a504b137 100644
--- a/lib/public/Files/Storage.php
+++ b/lib/public/Files/Storage.php
@@ -368,9 +368,12 @@ interface Storage extends 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 7.0.0
+ * @psalm-assert-if-true T $this
*/
public function instanceOfStorage($class);