Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
teach psalm about Storage::instanceOfStorage
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and artonge committed Dec 2, 2021
commit 016f99276b1014748a4dd9a9bc5666f8d7a3cc4b
3 changes: 3 additions & 0 deletions lib/public/Files/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -374,9 +374,12 @@ public function isLocal();
/**
* 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);

Expand Down