Skip to content

Add return type to jsonSerialize()#1180

Merged
mkalkbrenner merged 1 commit intosolariumphp:masterfrom
thomascorthals:types
Mar 20, 2026
Merged

Add return type to jsonSerialize()#1180
mkalkbrenner merged 1 commit intosolariumphp:masterfrom
thomascorthals:types

Conversation

@thomascorthals
Copy link
Member

Since we're no longer supporting PHP 7, we don't have to rely on #[\ReturnTypeWillChange] and can instead add the mixed return type to the method signature.

@codecov
Copy link

codecov bot commented Mar 19, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.40%. Comparing base (71fd796) to head (654c16e).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1180   +/-   ##
=======================================
  Coverage   98.40%   98.40%           
=======================================
  Files         403      403           
  Lines       10646    10646           
=======================================
  Hits        10476    10476           
  Misses        170      170           
Flag Coverage Δ
unittests 98.40% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@mkalkbrenner mkalkbrenner merged commit c962f48 into solariumphp:master Mar 20, 2026
44 checks passed
@thomascorthals thomascorthals deleted the types branch March 21, 2026 00:07
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