fix(Wrapper): Type $storage as IStorage

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2026-04-14 16:09:12 +02:00
parent 5d1e0a6e3a
commit 1b0410f333
No known key found for this signature in database
4 changed files with 6 additions and 6 deletions

View file

@ -23,11 +23,11 @@ class Encoding extends Wrapper {
private CappedMemoryCache $namesCache;
/**
* @param array $parameters
* @param array{storage: IStorage, ...} $parameters
*/
public function __construct(array $parameters) {
$this->storage = $parameters['storage'];
$this->namesCache = new CappedMemoryCache();
parent::__construct($parameters);
}
/**

View file

@ -42,7 +42,7 @@ class Encryption extends Wrapper {
private bool $enabled = true;
/**
* @param array $parameters
* @param array{storage: Storage\IStorage, ...} $parameters
*/
public function __construct(
array $parameters,

View file

@ -28,7 +28,7 @@ class PermissionsMask extends Wrapper {
protected readonly int $mask;
/**
* @param array{storage: Storage, mask: int, ...} $parameters
* @param array{storage: IStorage, mask: int, ...} $parameters
*
* $storage: The storage the permissions mask should be applied on
* $mask: The permission bits that should be kept, a combination of the \OCP\Constant::PERMISSION_ constants

View file

@ -26,7 +26,7 @@ use Override;
use Psr\Log\LoggerInterface;
class Wrapper implements Storage, ILockingStorage, IWriteStreamStorage {
protected ?Storage $storage = null;
protected ?IStorage $storage = null;
public ?ICache $cache = null;
@ -39,7 +39,7 @@ class Wrapper implements Storage, ILockingStorage, IWriteStreamStorage {
public ?IUpdater $updater = null;
/**
* @param array{storage: Storage, ...} $parameters
* @param array{storage: IStorage, ...} $parameters
*/
public function __construct(array $parameters) {
$this->storage = $parameters['storage'];