diff options
author | kesselb <mail@danielkesselberg.de> | 2021-06-15 20:19:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-15 20:19:30 +0200 |
commit | ed5f9f803ec46b934a3c668bb18cd8da834977f7 (patch) | |
tree | 1eb3fe57bfb1e361635eaa5be899b168f3b54051 | |
parent | 644ffebda8cbe392e01a64df0b54093f59267933 (diff) | |
parent | 33801708d29d44e9e1b2221af6778020ea689c50 (diff) | |
download | nextcloud-server-ed5f9f803ec46b934a3c668bb18cd8da834977f7.tar.gz nextcloud-server-ed5f9f803ec46b934a3c668bb18cd8da834977f7.zip |
Merge pull request #27512 from nextcloud/debt/noid/return-write-to-cache
Add return type for writeToCache
-rw-r--r-- | apps/user_ldap/lib/Connection.php | 6 |
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)); |