diff --git a/src/Registry.php b/src/Registry.php index 78afef0..2d1f3de 100644 --- a/src/Registry.php +++ b/src/Registry.php @@ -101,6 +101,6 @@ public static function remove(string $key): void */ public static function get(string $key, $default = null) { - return static::getInstance()->elements[$key] ?? $default; + return static::getInstance()->offsetGet($key) ?? $default; } }