Make sure strtolower only receives a string to satisfy psalm

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2021-12-10 16:02:21 +01:00 committed by Christopher Ng
parent 99006be126
commit 0877d62c47

View file

@ -261,7 +261,7 @@ class AllConfig implements \OCP\IConfig {
$this->fixDIInit();
if ($appName === 'core' && $key === 'email') {
$value = strtolower($value);
$value = strtolower((string) $value);
}
$prevValue = $this->getUserValue($userId, $appName, $key, null);