support set_int(foo, null)

This commit is contained in:
Shish 2019-10-02 00:37:22 +01:00
parent 14ca4f545d
commit f1c146b512

View file

@ -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);
}