summaryrefslogtreecommitdiffstats
path: root/lib/private/OCS/CoreCapabilities.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/OCS/CoreCapabilities.php')
-rw-r--r--lib/private/OCS/CoreCapabilities.php13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/private/OCS/CoreCapabilities.php b/lib/private/OCS/CoreCapabilities.php
index 0e9be3460ca..49e88b70ddd 100644
--- a/lib/private/OCS/CoreCapabilities.php
+++ b/lib/private/OCS/CoreCapabilities.php
@@ -42,12 +42,21 @@ class CoreCapabilities implements ICapability {
/**
* Return this classes capabilities
+ *
+ * @return array{
+ * core: array{
+ * pollinterval: int,
+ * webdav-root: string,
+ * reference-api: boolean,
+ * reference-regex: string,
+ * },
+ * }
*/
public function getCapabilities(): array {
return [
'core' => [
- 'pollinterval' => $this->config->getSystemValue('pollinterval', 60),
- 'webdav-root' => $this->config->getSystemValue('webdav-root', 'remote.php/webdav'),
+ 'pollinterval' => $this->config->getSystemValueInt('pollinterval', 60),
+ 'webdav-root' => $this->config->getSystemValueString('webdav-root', 'remote.php/webdav'),
'reference-api' => true,
'reference-regex' => IURLGenerator::URL_REGEX_NO_MODIFIERS,
],