code checker fixes for instanceOfStorage

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2021-11-17 16:42:29 +01:00 committed by Louis (Rebase PR Action)
parent ac28e0aefd
commit f70f9cf1be
4 changed files with 10 additions and 3 deletions

View file

@ -24,5 +24,7 @@
namespace OCA\Files_Sharing;
interface ISharedStorage {
use OCP\Files\Storage\IStorage;
interface ISharedStorage extends IStorage {
}

View file

@ -32,10 +32,12 @@
namespace OCP\Files;
use OCP\Files\Storage\IStorage;
/**
* Interface IHomeStorage
*
* @since 7.0.0
*/
interface IHomeStorage {
interface IHomeStorage extends IStorage {
}

View file

@ -29,5 +29,5 @@ namespace OCP\Files\Storage;
*
* @since 16.0.0
*/
interface IDisableEncryptionStorage {
interface IDisableEncryptionStorage extends IStorage {
}

View file

@ -362,9 +362,12 @@ interface 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 9.0.0
* @psalm-assert-if-true T $this
*/
public function instanceOfStorage($class);