Skip to content

Commit 37023f1

Browse files
committed
chore: improve typing for SharedStorage::$storage
Signed-off-by: Robin Appelman <[email protected]>
1 parent 79a951e commit 37023f1

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

apps/files_sharing/lib/SharedStorage.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
9797

9898
private string $sourcePath = '';
9999

100+
/**
101+
* @var ?\OC\Files\Storage\Storage $storage
102+
*/
103+
protected $storage;
104+
100105
public function __construct($arguments) {
101106
$this->ownerView = $arguments['ownerView'];
102107
$this->logger = \OC::$server->get(LoggerInterface::class);
@@ -132,6 +137,9 @@ private function getSourceRootInfo() {
132137
return $this->sourceRootInfo;
133138
}
134139

140+
/**
141+
* @psalm-assert \OC\Files\Storage\Storage $this->storage
142+
*/
135143
private function init() {
136144
if ($this->initialized) {
137145
if (!$this->storage) {

0 commit comments

Comments
 (0)