From 33801708d29d44e9e1b2221af6778020ea689c50 Mon Sep 17 00:00:00 2001 From: Daniel Kesselberg Date: Tue, 15 Jun 2021 17:03:03 +0200 Subject: [PATCH] Add return type for writeToCache writeToCache does not return a string. Signed-off-by: Daniel Kesselberg --- apps/user_ldap/lib/Connection.php | 6 ++---- 1 file 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)); -- 2.39.5