mirror of
https://github.com/nextcloud/server.git
synced 2026-04-05 17:16:55 -04:00
code checker fixes for instanceOfStorage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
89bc9f1b77
commit
db2dcbfe13
4 changed files with 10 additions and 3 deletions
|
|
@ -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…
Reference in a new issue