Skip to content

Commit 05d54cc

Browse files
committed
chore: improve typing for SharedStorage::$storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 53b8777 commit 05d54cc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

apps/files_sharing/lib/SharedStorage.php

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

9797
private string $sourcePath = '';
9898

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

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

0 commit comments

Comments
 (0)