Skip to content
Merged
Show file tree
Hide file tree
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
Prev Previous commit
Next Next commit
code checker fixes for instanceOfStorage
Signed-off-by: Robin Appelman <[email protected]>
  • Loading branch information
icewind1991 authored and artonge committed Dec 2, 2021
commit f70f9cf1beca160dc38877e85fc30ee1ca435cb5
4 changes: 3 additions & 1 deletion apps/files_sharing/lib/ISharedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,7 @@

namespace OCA\Files_Sharing;

interface ISharedStorage {
use OCP\Files\Storage\IStorage;

interface ISharedStorage extends IStorage {
}
4 changes: 3 additions & 1 deletion lib/public/Files/IHomeStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@

namespace OCP\Files;

use OCP\Files\Storage\IStorage;

/**
* Interface IHomeStorage
*
* @since 7.0.0
*/
interface IHomeStorage {
interface IHomeStorage extends IStorage {
}
2 changes: 1 addition & 1 deletion lib/public/Files/Storage/IDisableEncryptionStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
*
* @since 16.0.0
*/
interface IDisableEncryptionStorage {
interface IDisableEncryptionStorage extends IStorage {
}
3 changes: 3 additions & 0 deletions lib/public/Files/Storage/IStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,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 9.0.0
* @psalm-assert-if-true T $this
*/
public function instanceOfStorage($class);

Expand Down