This commit is contained in:
Shish 2019-05-28 19:54:07 +01:00
parent 1b114bfea8
commit 294f5845b1

View file

@ -165,17 +165,17 @@ abstract class BaseConfig implements Config
}
}
public function get_int(string $name, $default=null): ?int
public function get_int(string $name, ?int $default=null): ?int
{
return (int)($this->get($name, $default));
}
public function get_string(string $name, $default=null): ?string
public function get_string(string $name, ?string $default=null): ?string
{
return $this->get($name, $default);
}
public function get_bool(string $name, $default=null): ?bool
public function get_bool(string $name, ?bool $default=null): ?bool
{
return bool_escape($this->get($name, $default));
}