From 9d9532a215dfd47f512d35fada7a8a23fb1099bc Mon Sep 17 00:00:00 2001 From: Shish Date: Sun, 26 Jan 2020 17:47:41 +0000 Subject: [PATCH] warner --- core/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }