From 294f5845b176546ad010f771cce2c95fd84e9b18 Mon Sep 17 00:00:00 2001 From: Shish Date: Tue, 28 May 2019 19:54:07 +0100 Subject: [PATCH] defaults --- core/config.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/config.php b/core/config.php index 209e4f55..8f5c9a06 100644 --- a/core/config.php +++ b/core/config.php @@ -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)); }