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; }