mirror of
https://github.com/nextcloud/server.git
synced 2026-06-06 15:23:17 -04:00
chore: improve typing for SharedStorage::$storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
22596234fc
commit
e0f3de8150
1 changed files with 9 additions and 0 deletions
|
|
@ -97,6 +97,12 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
|
|||
|
||||
private string $sourcePath = '';
|
||||
|
||||
/**
|
||||
* @psalm-suppress NonInvariantDocblockPropertyType
|
||||
* @var ?\OC\Files\Storage\Storage $storage
|
||||
*/
|
||||
protected $storage;
|
||||
|
||||
private static int $initDepth = 0;
|
||||
|
||||
public function __construct($arguments) {
|
||||
|
|
@ -134,6 +140,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