aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Node/Node.php
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-03 01:34:06 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2023-06-21 16:53:19 +0200
commit167a5f394d9baafaa450843f76864070412727ca (patch)
treee42b031ed4ad8de2be534781a24192e1e99b0573 /lib/private/Files/Node/Node.php
parenteb50b6c6aaaf0557b4b59648e24611e1b67a24bb (diff)
downloadnextcloud-server-167a5f394d9baafaa450843f76864070412727ca.tar.gz
nextcloud-server-167a5f394d9baafaa450843f76864070412727ca.zip
fix: add typehine for IRootFolder
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib/private/Files/Node/Node.php')
-rw-r--r--lib/private/Files/Node/Node.php12
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/private/Files/Node/Node.php b/lib/private/Files/Node/Node.php
index 0eef2716141..4804f7046aa 100644
--- a/lib/private/Files/Node/Node.php
+++ b/lib/private/Files/Node/Node.php
@@ -34,6 +34,7 @@ use OC\Files\Mount\MoveableMount;
use OC\Files\Utils\PathHelper;
use OCP\Files\FileInfo;
use OCP\Files\InvalidPathException;
+use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
use OCP\Files\NotPermittedException;
use OCP\Lock\LockedException;
@@ -47,10 +48,7 @@ class Node implements \OCP\Files\Node {
*/
protected $view;
- /**
- * @var \OC\Files\Node\Root $root
- */
- protected $root;
+ protected IRootFolder $root;
/**
* @var string $path Absolute path to the node (e.g. /admin/files/folder/file)
@@ -72,7 +70,7 @@ class Node implements \OCP\Files\Node {
* @param string $path
* @param FileInfo $fileInfo
*/
- public function __construct($root, $view, $path, $fileInfo = null, ?Node $parent = null, bool $infoHasSubMountsIncluded = true) {
+ public function __construct(IRootFolder $root, $view, $path, $fileInfo = null, ?Node $parent = null, bool $infoHasSubMountsIncluded = true) {
if (Filesystem::normalizePath($view->getRoot()) !== '/') {
throw new PreConditionNotMetException('The view passed to the node should not have any fake root set');
}
@@ -402,7 +400,7 @@ class Node implements \OCP\Files\Node {
/**
* @param string $targetPath
- * @return \OC\Files\Node\Node
+ * @return \OCP\Files\Node
* @throws InvalidPathException
* @throws NotFoundException
* @throws NotPermittedException if copy not allowed or failed
@@ -428,7 +426,7 @@ class Node implements \OCP\Files\Node {
/**
* @param string $targetPath
- * @return \OC\Files\Node\Node
+ * @return \OCP\Files\Node
* @throws InvalidPathException
* @throws NotFoundException
* @throws NotPermittedException if move not allowed or failed