aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-03-11 17:21:29 +0100
committerCôme Chilliet <come.chilliet@nextcloud.com>2024-03-14 11:22:17 +0100
commitf46209a34e632a3638a1f396c824253575d4f399 (patch)
treec3646aa4d75add6d42fabdfd329f5242623e1bb3 /apps
parent0ace9a4efaecabefea97636c950638de98563cd5 (diff)
downloadnextcloud-server-f46209a34e632a3638a1f396c824253575d4f399.tar.gz
nextcloud-server-f46209a34e632a3638a1f396c824253575d4f399.zip
chore: improve typing for SharedStorage::$storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-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 12fb0e799f1..877de247fb1 100644
--- a/apps/files_sharing/lib/SharedStorage.php
+++ b/apps/files_sharing/lib/SharedStorage.php
@@ -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) {