Skip to content

fix: accept null failed-message recipients - #34

Open
bjarn wants to merge 1 commit into
mainfrom
codex/fix-null-failed-recipient
Open

fix: accept null failed-message recipients#34
bjarn wants to merge 1 commit into
mainfrom
codex/fix-null-failed-recipient

Conversation

@bjarn

@bjarn bjarn commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Allow MessageFailedData::$recipient to be null.
  • Test failed-message webhook payloads with a string recipient and a null recipient.

Reason

A message.failed webhook can contain a null recipient. The current non-nullable type causes a type error during deserialization.

Verification

  • vendor/bin/pest tests/Unit/Webhooks/WebhookEventTypeTest.php
  • vendor/bin/pint --dirty --format agent

@Bjornftw
Bjornftw self-requested a review August 25, 2026 21:04
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