Skip to content

Commit 1973e7a

Browse files
committed
fix: Adapt LazyRoot::getUserFolder signature and remove LazyFolder::getUserFolder
Signed-off-by: Côme Chilliet <[email protected]>
1 parent 7fbd405 commit 1973e7a

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

lib/private/Files/Node/LazyFolder.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -313,13 +313,6 @@ public function getName() {
313313
return $this->__call(__FUNCTION__, func_get_args());
314314
}
315315

316-
/**
317-
* @inheritDoc
318-
*/
319-
public function getUserFolder($userId) {
320-
return $this->__call(__FUNCTION__, func_get_args());
321-
}
322-
323316
public function getMimetype(): string {
324317
if (isset($this->data['mimetype'])) {
325318
return $this->data['mimetype'];

lib/private/Files/Node/LazyRoot.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
use OCP\Files\Cache\ICacheEntry;
1111
use OCP\Files\IRootFolder;
12+
use OCP\Files\IUserFolder;
1213
use OCP\Files\Mount\IMountPoint;
1314
use OCP\Files\Node;
1415
use OCP\Files\Node as INode;
@@ -34,7 +35,7 @@ protected function getRootFolder(): IRootFolder {
3435
return $folder;
3536
}
3637

37-
public function getUserFolder($userId) {
38+
public function getUserFolder(string $userId): IUserFolder {
3839
return $this->__call(__FUNCTION__, func_get_args());
3940
}
4041

0 commit comments

Comments
 (0)