Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@acelaya
Copy link
Member

@acelaya acelaya commented Oct 16, 2025

Due to a change in a recent version, PHPStan now reports an incorrect usage of EmptyResponse::withHeaders.

Things were working, probably due to internal checks accounting for headers set as string instead of string[], but the type annotations were indicating the method was supposed to be used differently.

This PR refactors that slightly to ensure it is used as intended.

@codecov
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.55%. Comparing base (b01f271) to head (648696f).
⚠️ Report is 6 commits behind head on develop.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #2493      +/-   ##
=============================================
- Coverage      93.56%   93.55%   -0.01%     
  Complexity      1756     1756              
=============================================
  Files            279      279              
  Lines           5963     5961       -2     
=============================================
- Hits            5579     5577       -2     
  Misses           384      384              

☔ View full report in Codecov by Sentry.
📢 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.

@acelaya acelaya merged commit 785f728 into shlinkio:develop Oct 16, 2025
30 of 31 checks passed
@acelaya acelaya deleted the fix-phpstan branch October 16, 2025 08:16
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.

1 participant