aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_ldap
diff options
context:
space:
mode:
authorDaniel Kesselberg <mail@danielkesselberg.de>2021-06-15 17:03:03 +0200
committerDaniel Kesselberg <mail@danielkesselberg.de>2021-06-15 17:03:03 +0200
commit33801708d29d44e9e1b2221af6778020ea689c50 (patch)
treea3205868b3cb5e3ccfc3fb32ff62692b1acc319d /apps/user_ldap
parenteb4e4c462b4d72833aec1f2ba4b97ffe52d1387e (diff)
downloadnextcloud-server-33801708d29d44e9e1b2221af6778020ea689c50.tar.gz
nextcloud-server-33801708d29d44e9e1b2221af6778020ea689c50.zip
Add return type for writeToCache
writeToCache does not return a string. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
Diffstat (limited to 'apps/user_ldap')
-rw-r--r--apps/user_ldap/lib/Connection.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/user_ldap/lib/Connection.php b/apps/user_ldap/lib/Connection.php
index 3c4cf7001a2..d57ec9ee6f8 100644
--- a/apps/user_ldap/lib/Connection.php
+++ b/apps/user_ldap/lib/Connection.php
@@ -256,17 +256,15 @@ class Connection extends LDAPUtility {
/**
* @param string $key
* @param mixed $value
- *
- * @return string
*/
- public function writeToCache($key, $value) {
+ public function writeToCache($key, $value): void {
if (!$this->configured) {
$this->readConfiguration();
}
if (is_null($this->cache)
|| !$this->configuration->ldapCacheTTL
|| !$this->configuration->ldapConfigurationActive) {
- return null;
+ return;
}
$key = $this->getCacheKey($key);
$value = base64_encode(json_encode($value));