]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix type error in Sabre/Connector/Directory
authorCarl Schwan <carl@carlschwan.eu>
Thu, 2 Jun 2022 08:23:39 +0000 (10:23 +0200)
committerCarl Schwan <carl@carlschwan.eu>
Tue, 14 Jun 2022 11:01:06 +0000 (13:01 +0200)
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
apps/dav/lib/Connector/Sabre/Directory.php

index 5280511d5be664232e9b637c61f9e087f20d6898..b575a051b2a20ce1c457ec1011aadfef446fcaf8 100644 (file)
@@ -66,7 +66,7 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol
 
        /** Cached quota info */
        private ?array $quotaInfo = null;
-       private ?ObjectTree $tree = null;
+       private ?CachingTree $tree = null;
 
        /** @var array<string, array<int, FileMetadata>> */
        private array $metadata = [];
@@ -74,7 +74,7 @@ class Directory extends \OCA\DAV\Connector\Sabre\Node implements \Sabre\DAV\ICol
        /**
         * Sets up the node, expects a full path name
         */
-       public function __construct(View $view, FileInfo $info, ?ObjectTree $tree = null, IShareManager $shareManager = null) {
+       public function __construct(View $view, FileInfo $info, ?CachingTree $tree = null, IShareManager $shareManager = null) {
                parent::__construct($view, $info, $shareManager);
                $this->tree = $tree;
        }