diff options
author | Robin Appelman <robin@icewind.nl> | 2024-03-11 17:21:29 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-03-22 15:42:45 +0000 |
commit | 7982645f6676aeb2bb7f2bdcea98dbd1580a4b9b (patch) | |
tree | 31c1470e00342ce7993806e751bfbd58803795b4 | |
parent | 459c17492bf723297b2fd8014274ca45d9751e4d (diff) | |
download | nextcloud-server-7982645f6676aeb2bb7f2bdcea98dbd1580a4b9b.tar.gz nextcloud-server-7982645f6676aeb2bb7f2bdcea98dbd1580a4b9b.zip |
chore: improve typing for SharedStorage::$storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r-- | apps/files_sharing/lib/SharedStorage.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index be5656d64b5..de3b30b1b14 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -101,6 +101,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->getLogger(); @@ -136,6 +142,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) { |