handle problems

Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
Simon L.
2026-02-04 23:11:49 +01:00
parent f3ca471078
commit c3bb981046
6 changed files with 56 additions and 21 deletions

View File

@@ -341,10 +341,10 @@ class ConfigurationManager
}
if ($secretId === 'BORGBACKUP_PASSWORD' && !file_exists(DataConst::GetBackupSecretFile())) {
$this->doubleSafeBackupSecret($secrets[$secretId]);
$this->doubleSafeBackupSecret((string)$secrets[$secretId]);
}
return $secrets[$secretId];
return (string)$secrets[$secretId];
}
public function getRegisteredSecret(string $secretId) : string {
@@ -704,7 +704,7 @@ class ConfigurationManager
if ($configValue === '') {
return $defaultValue;
}
return $configValue;
return (string) $configValue;
}
if (file_exists(DataConst::GetConfigFile())) {