Skip to content

Commit

Permalink
Update Registry.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Shelamkoff authored Mar 9, 2021
1 parent f1bb8bd commit 06c24c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 06c24c3

Please sign in to comment.