From 016f99276b1014748a4dd9a9bc5666f8d7a3cc4b 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 c9e72983231..bb1adec3cc1 100644 --- a/lib/public/Files/Storage.php +++ b/lib/public/Files/Storage.php @@ -374,9 +374,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);