Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX Always return something #84

Merged
merged 1 commit into from
Feb 20, 2023

Conversation

emteknetnz
Copy link
Member

@emteknetnz emteknetnz commented Feb 20, 2023

Issue #85

Fixes:
error-log.ERROR: Uncaught Exception TypeError: "SilverStripe\HybridSessions\Store\CookieStore::read(): Return value must be of type string|false, none returned" at /sites/somesite/releases/somerelease/vendor/silverstripe/hybridsessions/src/Store/CookieStore.php line 113 {"exception":"[object] (TypeError(code: 0): SilverStripe\\HybridSessions\\Store\\CookieStore::read(): Return value must be of type string|false, none returned at /sites/somesite/releases/somerelease/vendor/silverstripe/hybridsessions/src/Store/CookieStore.php:113)"} []

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Returning false here (when the data has expired or no data is available) is correct - it's the same behaviour we use when we start a new session which is what should happen in this case.

@GuySartorelli GuySartorelli merged commit 7e85207 into silverstripe:3.0 Feb 20, 2023
@GuySartorelli GuySartorelli deleted the pulls/3.0/fixit branch February 20, 2023 00:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants