From c6cd2b131d098527290421c5e381082569459bda Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 16 Jul 2019 07:45:24 -0400 Subject: [PATCH] Add transitive type hints in Core\PConfig --- src/Core/PConfig.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Core/PConfig.php b/src/Core/PConfig.php index 99f0c8320..49e34720f 100644 --- a/src/Core/PConfig.php +++ b/src/Core/PConfig.php @@ -40,7 +40,7 @@ class PConfig * * @return void */ - public static function load(int $uid, $cat) + public static function load(int $uid, string $cat) { self::$config->load($uid, $cat); } @@ -57,7 +57,7 @@ class PConfig * * @return mixed Stored value or null if it does not exist */ - public static function get(int $uid, $cat, $key, $default_value = null, $refresh = false) + public static function get(int $uid, string $cat, string $key, $default_value = null, bool $refresh = false) { return self::$config->get($uid, $cat, $key, $default_value, $refresh); } @@ -72,7 +72,7 @@ class PConfig * * @return bool Operation success */ - public static function set(int $uid, $cat, $key, $value) + public static function set(int $uid, string $cat, string $key, $value) { return self::$config->set($uid, $cat, $key, $value); } @@ -86,7 +86,7 @@ class PConfig * * @return bool */ - public static function delete(int $uid, $cat, $key) + public static function delete(int $uid, string $cat, string $key) { return self::$config->delete($uid, $cat, $key); }