fix: add typehine for IRootFolder

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
This commit is contained in:
Arthur Schiwon 2023-06-03 01:34:06 +02:00
parent 5640339d1d
commit e5e9df2948
No known key found for this signature in database
GPG key ID: 7424F1874854DF23

View file

@ -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