Skip to content

Drop PHP 8.1 - #248

Open
samuelwei wants to merge 8 commits into
masterfrom
drop-php-8.1
Open

samuelwei wants to merge 8 commits into
masterfrom
drop-php-8.1

Conversation

@samuelwei

Copy link
Copy Markdown
  • Drop PHP 8.1
  • Bump dev tools
    • phpstan: v1 -> v2
    • phpunit: v11 -> v12
    • rector: v1 -> v2
    • psalm: v5 -> v6

@codecov

codecov Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 95.23810% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.49%. Comparing base (b806569) to head (29166dd).
⚠️ Report is 5 commits behind head on master.

Files with missing lines Patch % Lines
src/Http/Transport/Cookie.php 50.00% 1 Missing ⚠️
src/Responses/BaseResponseAsJson.php 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master     #248      +/-   ##
============================================
- Coverage     98.09%   96.49%   -1.60%     
+ Complexity      454      420      -34     
============================================
  Files            54       57       +3     
  Lines          1049      999      -50     
============================================
- Hits           1029      964      -65     
- Misses           20       35      +15     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/Http/SetCookie.php Outdated
* Get the cookie name.
*/
public function getName(): string
public function getName(): string|bool|int|null

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This and getters here should be narrowed by using assert, since Name never contains bool/int/null.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

The setCookie class contained many features we don't need at all. I reduced it to the basics, which makes type safety a lot easier. 9834be8

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