summaryrefslogtreecommitdiffstats
path: root/lib/Config/LegacyConfig.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Config/LegacyConfig.php')
-rw-r--r--lib/Config/LegacyConfig.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Config/LegacyConfig.php b/lib/Config/LegacyConfig.php
index 3267e132e..b0d78f9f1 100644
--- a/lib/Config/LegacyConfig.php
+++ b/lib/Config/LegacyConfig.php
@@ -69,9 +69,8 @@ class LegacyConfig
} else {
foreach ($configValues as $key => $value) {
if (property_exists($this, $key)) {
- $type = gettype($this->$key);
- settype($value, $type);
- $this->$key = $value;
+ settype($value, gettype($this->$key)); //@phpstan-ignore-line
+ $this->$key = $value; //@phpstan-ignore-line
} else {
$this->logger->warning(
'Configuration value "' . $key .