Skip to content

Commit ba7b89e

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

apps/files_sharing/lib/SharedStorage.php

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

9898
private string $sourcePath = '';
9999

100+
/**
101+
* @psalm-suppress NonInvariantDocblockPropertyType
102+
* @var ?\OC\Files\Storage\Storage $storage
103+
*/
104+
protected $storage;
105+
100106
public function __construct($arguments) {
101107
$this->ownerView = $arguments['ownerView'];
102108
$this->logger = \OC::$server->get(LoggerInterface::class);
@@ -132,6 +138,9 @@ private function getSourceRootInfo() {
132138
return $this->sourceRootInfo;
133139
}
134140

141+
/**
142+
* @psalm-assert \OC\Files\Storage\Storage $this->storage
143+
*/
135144
private function init() {
136145
if ($this->initialized) {
137146
if (!$this->storage) {

0 commit comments

Comments
 (0)