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: Fix incorrect typing of 'same_site' cookie option #81

Merged
merged 2 commits into from
Dec 23, 2024

Conversation

ollieread
Copy link
Member

This fixes #80 by setting the expected typing for all occurrences of same_site to be string|null/ ?string

The 'same_site' value was always expected to be a bool, even though it would always be 'string', 'lax', 'none' or null
@ollieread ollieread self-assigned this Dec 23, 2024
@ollieread ollieread linked an issue Dec 23, 2024 that may be closed by this pull request
@ollieread ollieread merged commit 23f0dac into main Dec 23, 2024
2 checks passed
@ollieread ollieread deleted the fix/cookie-same-site-typing branch December 23, 2024 11:48
Copy link

codecov bot commented Dec 23, 2024

Codecov Report

Attention: Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.

Project coverage is 54.20%. Comparing base (bd2e402) to head (ae345be).
Report is 1 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/Support/SettingsRepository.php 0.00% 4 Missing ⚠️
src/Overrides/CookieOverride.php 0.00% 1 Missing ⚠️
src/Overrides/SessionOverride.php 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main      #81      +/-   ##
============================================
- Coverage     54.24%   54.20%   -0.05%     
  Complexity      474      474              
============================================
  Files            64       64              
  Lines          1342     1343       +1     
============================================
  Hits            728      728              
- Misses          614      615       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

Cookie override same_site should be string, not bool
1 participant