Skip to content

Commit

Permalink
Update Registry.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelamkoff authored Jan 21, 2022
1 parent 268fbf9 commit 6fac4c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}
Expand Down

0 comments on commit 6fac4c8

Please sign in to comment.