code checker fixes for instanceOfStorage

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

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

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

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

@ -356,9 +356,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);

Loading…
Cancel
Save