aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector/Sabre/Node.php
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-05-04 19:32:22 -0300
committerMorris Jobke <hey@morrisjobke.de>2017-05-04 19:32:22 -0300
commit49e958fa120b701e5a5b0f5caf76f671325995e6 (patch)
treeb3964bf78df19ea763589b52e3ec6af7d55e647d /apps/dav/lib/Connector/Sabre/Node.php
parent8dc2749296b44cc79a1fe50f298f3b2034970da4 (diff)
downloadnextcloud-server-49e958fa120b701e5a5b0f5caf76f671325995e6.tar.gz
nextcloud-server-49e958fa120b701e5a5b0f5caf76f671325995e6.zip
Enforce type hints in dav app
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/Node.php')
-rw-r--r--apps/dav/lib/Connector/Sabre/Node.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Node.php b/apps/dav/lib/Connector/Sabre/Node.php
index 3e2204cf661..06933f53e76 100644
--- a/apps/dav/lib/Connector/Sabre/Node.php
+++ b/apps/dav/lib/Connector/Sabre/Node.php
@@ -34,7 +34,9 @@
namespace OCA\DAV\Connector\Sabre;
use OC\Files\Mount\MoveableMount;
+use OC\Files\View;
use OCA\DAV\Connector\Sabre\Exception\InvalidPath;
+use OCP\Files\FileInfo;
use OCP\Share\Exceptions\ShareNotFound;
use OCP\Share\IManager;
@@ -77,7 +79,7 @@ abstract class Node implements \Sabre\DAV\INode {
* @param \OCP\Files\FileInfo $info
* @param IManager $shareManager
*/
- public function __construct($view, $info, IManager $shareManager = null) {
+ public function __construct(View $view, FileInfo $info, IManager $shareManager = null) {
$this->fileView = $view;
$this->path = $this->fileView->getRelativePath($info->getPath());
$this->info = $info;