From f1c146b512996c189f17c90e8b6a731da116e05f Mon Sep 17 00:00:00 2001 From: Shish Date: Wed, 2 Oct 2019 00:37:22 +0100 Subject: [PATCH] support set_int(foo, null) --- core/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/config.php b/core/config.php index 06047a77..40875f07 100644 --- a/core/config.php +++ b/core/config.php @@ -135,7 +135,7 @@ abstract class BaseConfig implements Config public function set_int(string $name, ?string $value): void { - $this->values[$name] = parse_shorthand_int($value); + $this->values[$name] = is_null($value) ? null : parse_shorthand_int($value); $this->save($name); }