aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-06 16:33:01 +0100
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-03-06 16:38:25 +0100
commitdf9e2b828aacd31c16028b4eca4d0e220e6929e7 (patch)
tree6918e728f4f88585b74875f1beb28706f8fdd05d /lib
parented81337461c8c7763eb07a489fc980491dc9c046 (diff)
downloadnextcloud-server-df9e2b828aacd31c16028b4eca4d0e220e6929e7.tar.gz
nextcloud-server-df9e2b828aacd31c16028b4eca4d0e220e6929e7.zip
Fix mismatching docblock return types
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AllConfig.php12
-rw-r--r--lib/private/Authentication/TwoFactorAuth/EnforcementState.php2
-rw-r--r--lib/private/Group/Database.php3
-rw-r--r--lib/private/User/Session.php2
4 files changed, 13 insertions, 6 deletions
diff --git a/lib/private/AllConfig.php b/lib/private/AllConfig.php
index 9ccb443aabb..2eca9d55b28 100644
--- a/lib/private/AllConfig.php
+++ b/lib/private/AllConfig.php
@@ -129,7 +129,9 @@ class AllConfig implements \OCP\IConfig {
*
* @param string $key the key of the value, under which it was saved
* @param mixed $default the default value to be returned if the value isn't set
- * @return mixed the value or $default
+ *
+ * @return bool
+ *
* @since 16.0.0
*/
public function getSystemValueBool(string $key, bool $default = false): bool {
@@ -141,7 +143,9 @@ class AllConfig implements \OCP\IConfig {
*
* @param string $key the key of the value, under which it was saved
* @param mixed $default the default value to be returned if the value isn't set
- * @return mixed the value or $default
+ *
+ * @return int
+ *
* @since 16.0.0
*/
public function getSystemValueInt(string $key, int $default = 0): int {
@@ -153,7 +157,9 @@ class AllConfig implements \OCP\IConfig {
*
* @param string $key the key of the value, under which it was saved
* @param mixed $default the default value to be returned if the value isn't set
- * @return mixed the value or $default
+ *
+ * @return string
+ *
* @since 16.0.0
*/
public function getSystemValueString(string $key, string $default = ''): string {
diff --git a/lib/private/Authentication/TwoFactorAuth/EnforcementState.php b/lib/private/Authentication/TwoFactorAuth/EnforcementState.php
index 46bcc596d92..abd0ec7f2e7 100644
--- a/lib/private/Authentication/TwoFactorAuth/EnforcementState.php
+++ b/lib/private/Authentication/TwoFactorAuth/EnforcementState.php
@@ -55,7 +55,7 @@ class EnforcementState implements JsonSerializable {
}
/**
- * @return string[]
+ * @return bool
*/
public function isEnforced(): bool {
return $this->enforced;
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php
index 450fffe573e..27dad809f89 100644
--- a/lib/private/Group/Database.php
+++ b/lib/private/Group/Database.php
@@ -400,7 +400,8 @@ class Database extends ABackend
* get the number of disabled users in a group
*
* @param string $search
- * @return int|bool
+ *
+ * @return int
*/
public function countDisabledInGroup(string $gid): int {
$this->fixDI();
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php
index 4aa9074b4a4..602f779c901 100644
--- a/lib/private/User/Session.php
+++ b/lib/private/User/Session.php
@@ -317,7 +317,7 @@ class Session implements IUserSession, Emitter {
}
/**
- * @return mixed
+ * @return null|string
*/
public function getImpersonatingUserID(): ?string {