From 6fac4c89cce86e244e405c5e23976fb95079dd5d Mon Sep 17 00:00:00 2001 From: Andrey Shelamkoff Date: Fri, 21 Jan 2022 19:33:52 +0200 Subject: [PATCH] Update Registry.php --- src/Registry.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Registry.php b/src/Registry.php index 47b98fa..1ad8e01 100644 --- a/src/Registry.php +++ b/src/Registry.php @@ -65,7 +65,7 @@ public function offsetGet($offset): mixed * @param $value * @return mixed */ - public static function set(string $key, $value) + public static function set(string $key, $value): mixed { self::getInstance()->offsetSet($key, $value); return $value; @@ -92,9 +92,9 @@ public static function remove(string $key): void /** * @param string $key * @param null $default - * @return mixed|null + * @return mixed */ - public static function get(string $key, $default = null) + public static function get(string $key, $default = null): mixed { return static::getInstance()->offsetGet($key) ?? $default; }