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 backportbot[bot] committed Dec 2, 2021
commit 4433732f2236b5db8dc609eef275d97d2a2441de
3 changes: 3 additions & 0 deletions lib/public/Files/Storage.php
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,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