writeToCache does not return a string.
Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
/**
* @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));