From 4433732f2236b5db8dc609eef275d97d2a2441de Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 16 Nov 2021 18:06:46 +0100 Subject: [PATCH] teach psalm about `Storage::instanceOfStorage` Signed-off-by: Robin Appelman --- lib/public/Files/Storage.php | 3 +++ 1 file changed, 3 insertions(+) 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 $class * @return bool * @since 7.0.0 + * @psalm-assert-if-true T $this */ public function instanceOfStorage($class);