Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php')
-rw-r--r--apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php b/apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php
index 3247259357f..c222923bc8e 100644
--- a/apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php
+++ b/apps/dav/lib/Connector/Sabre/ChecksumUpdatePlugin.php
@@ -26,14 +26,12 @@ namespace OCA\DAV\Connector\Sabre;
use Sabre\DAV\ServerPlugin;
use Sabre\HTTP\RequestInterface;
use Sabre\HTTP\ResponseInterface;
+use Sabre\DAV\Server;
class ChecksumUpdatePlugin extends ServerPlugin {
- /**
- * @var \Sabre\DAV\Server
- */
- protected $server;
+ protected ?Server $server = null;
- public function initialize(\Sabre\DAV\Server $server) {
+ public function initialize(Server $server) {
$this->server = $server;
$server->on('method:PATCH', [$this, 'httpPatch']);
}
@@ -42,6 +40,7 @@ class ChecksumUpdatePlugin extends ServerPlugin {
return 'checksumupdate';
}
+ /** @return string[] */
public function getHTTPMethods($path): array {
$tree = $this->server->tree;
@@ -55,6 +54,7 @@ class ChecksumUpdatePlugin extends ServerPlugin {
return [];
}
+ /** @return string[] */
public function getFeatures(): array {
return ['nextcloud-checksum-update'];
}