Skip to content

Commit f46209a

Browse files
icewind1991come-nc
authored andcommitted
chore: improve typing for SharedStorage::$storage
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent 0ace9a4 commit f46209a

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
@@ -100,6 +100,12 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
100100

101101
private static int $initDepth = 0;
102102

103+
/**
104+
* @psalm-suppress NonInvariantDocblockPropertyType
105+
* @var ?\OC\Files\Storage\Storage $storage
106+
*/
107+
protected $storage;
108+
103109
public function __construct($arguments) {
104110
$this->ownerView = $arguments['ownerView'];
105111
$this->logger = \OC::$server->get(LoggerInterface::class);
@@ -135,6 +141,9 @@ private function getSourceRootInfo() {
135141
return $this->sourceRootInfo;
136142
}
137143

144+
/**
145+
* @psalm-assert \OC\Files\Storage\Storage $this->storage
146+
*/
138147
private function init() {
139148
if ($this->initialized) {
140149
if (!$this->storage) {

0 commit comments

Comments
 (0)