summaryrefslogtreecommitdiffstats
path: root/lib
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-07-04 23:10:03 +0200
commite5e9df2948e32d1fedbf3c0f3e0b87e42e361128 (patch)
tree63af03ef1b2835792b26cc08a2f9998e17fc8cf4 /lib
parent5640339d1d6d87a80b3640b7c1465b63d53352e5 (diff)
downloadnextcloud-server-e5e9df2948e32d1fedbf3c0f3e0b87e42e361128.tar.gz
nextcloud-server-e5e9df2948e32d1fedbf3c0f3e0b87e42e361128.zip
fix: add typehine for IRootFolder
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Node/Node.php10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/private/Files/Node/Node.php b/lib/private/Files/Node/Node.php
index 161b3e2dd30..9a1630ebde0 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)
@@ -396,7 +394,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
@@ -422,7 +420,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