mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
chore: improve typing for SharedStorage::$storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
0ace9a4efa
commit
f46209a34e
1 changed files with 9 additions and 0 deletions
|
|
@ -100,6 +100,12 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
|
|||
|
||||
private static int $initDepth = 0;
|
||||
|
||||
/**
|
||||
* @psalm-suppress NonInvariantDocblockPropertyType
|
||||
* @var ?\OC\Files\Storage\Storage $storage
|
||||
*/
|
||||
protected $storage;
|
||||
|
||||
public function __construct($arguments) {
|
||||
$this->ownerView = $arguments['ownerView'];
|
||||
$this->logger = \OC::$server->get(LoggerInterface::class);
|
||||
|
|
@ -135,6 +141,9 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
|
|||
return $this->sourceRootInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @psalm-assert \OC\Files\Storage\Storage $this->storage
|
||||
*/
|
||||
private function init() {
|
||||
if ($this->initialized) {
|
||||
if (!$this->storage) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue