Faen
This commit is contained in:
parent
30c82d69c0
commit
08c36dd0b5
@ -27,7 +27,6 @@ function config(string $key): bool|string|int|float {
|
|||||||
}
|
}
|
||||||
if (gettype($override_value) !== gettype($config[$override_key])) {
|
if (gettype($override_value) !== gettype($config[$override_key])) {
|
||||||
trigger_error('Type mismatch in config file', E_USER_ERROR);
|
trigger_error('Type mismatch in config file', E_USER_ERROR);
|
||||||
throw new Exception('Type mismatch in config override file');
|
|
||||||
}
|
}
|
||||||
$config[$override_key] = $override_value;
|
$config[$override_key] = $override_value;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user