diff --git a/core/config.php b/core/config.php index 5804dcab..ca667924 100644 --- a/core/config.php +++ b/core/config.php @@ -214,7 +214,7 @@ abstract class BaseConfig implements Config public function get_string(string $name, ?string $default=null): ?string { $val = $this->get($name, $default); - if(!is_string($val)) throw new SCoreException("$name is not a string: $val"); + if(!is_string($val) && !is_null($val)) throw new SCoreException("$name is not a string: $val"); return $val; }