You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: extract getSessionInstance helper and add default to getSessionBucket
- Add getSessionInstance(string $instance, array $default = []): array
to retrieve $_SESSION[$instance] as a typed array with fallback,
removing the duplicated fetch pattern in setSessionData and setSessionVar
- Add $default parameter to getSessionBucket() so callers can control
the fallback value (null for readers, [] for writers)
Co-Authored-By: Opencode <opencode@noreply.opencode.ai>
Co-Authored-By: GitHub Copilot <copilot@noreply.github.com>
0 commit comments