Skip to content

Make PushError implement JsonSerializable - #85

Merged
dru1x merged 1 commit into
mainfrom
74-make-pusherror-implement-jsonserializable
Jul 21, 2026
Merged

Make PushError implement JsonSerializable#85
dru1x merged 1 commit into
mainfrom
74-make-pusherror-implement-jsonserializable

Conversation

@dru1x

@dru1x dru1x commented Jul 20, 2026

Copy link
Copy Markdown
Owner

Summary

PushError now implements JsonSerializable via the existing ConvertsToJson trait, so instances can be passed directly to json_encode() or converted with toJson().

Changes

  • PushError now implements JsonSerializable and uses the ConvertsToJson trait.

Testing

  • Added tests/Unit/PushError/PushErrorTest.php covering json_encode() and toJson() output.

Related Issues

Closes #74

@dru1x
dru1x requested a review from liamduckett July 20, 2026 22:55
@dru1x dru1x self-assigned this Jul 20, 2026
@dru1x dru1x added the enhancement New feature or request label Jul 20, 2026
@dru1x
dru1x merged commit d56b671 into main Jul 21, 2026
7 checks passed
@dru1x
dru1x deleted the 74-make-pusherror-implement-jsonserializable branch July 21, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make PushError implement JsonSerializable for consistency with other DTOs

2 participants