mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 08:16:43 -04:00
teach psalm about Storage::instanceOfStorage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
51721e8013
commit
016f99276b
1 changed files with 3 additions and 0 deletions
|
|
@ -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<T> $class
|
||||
* @return bool
|
||||
* @since 7.0.0
|
||||
* @psalm-assert-if-true T $this
|
||||
*/
|
||||
public function instanceOfStorage($class);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue