aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-03-11 17:21:29 +0100
committerRobin Appelman <robin@icewind.nl>2024-07-11 17:39:56 +0200
commite0f3de81509d625b90d2f9ac94d2df944cf68957 (patch)
tree35c0a657dd997d93738ebfaf93f78408bd88ffca /apps/files_sharing
parent22596234fcd65134487d844ac38e2e7860debbc3 (diff)
downloadnextcloud-server-e0f3de81509d625b90d2f9ac94d2df944cf68957.tar.gz
nextcloud-server-e0f3de81509d625b90d2f9ac94d2df944cf68957.zip
chore: improve typing for SharedStorage::$storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/lib/SharedStorage.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php
index 44ec877c52c..e7277323d81 100644
--- a/apps/files_sharing/lib/SharedStorage.php
+++ b/apps/files_sharing/lib/SharedStorage.php
@@ -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) {