teach psalm about `Storage::instanceOfStorage`

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/29735/head
Robin Appelman 3 years ago
parent 17c901bde0
commit f93061e344
No known key found for this signature in database
GPG Key ID: 42B69D8A64526EFB

@ -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<T> $class
* @return bool
* @since 7.0.0
* @psalm-assert-if-true T $this
*/
public function instanceOfStorage($class);

Loading…
Cancel
Save