Changed set_int to accept a string, since it can accept shorthand strings like 1M. Casting it to an int was stripping out that information when settings would be submitted.

This commit is contained in:
matthew 2019-06-01 10:47:11 -05:00
parent 23392b6b91
commit 1eecf323f4

View file

@ -113,7 +113,7 @@ abstract class BaseConfig implements Config
{
public $values = [];
public function set_int(string $name, ?int $value): void
public function set_int(string $name, ?string $value): void
{
$this->values[$name] = parse_shorthand_int($value);
$this->save($name);