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:
parent
23392b6b91
commit
1eecf323f4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue