Message 'body' should not be nullable #10

Closed
opened 2026-04-28 19:12:20 +02:00 by c.fahner · 0 comments
Owner

Currently the Message::$body is typed as ?iterable. This introduces unnecessary null-checks everywhere the message body is involved for no real gain. Messages that are not supposed to have a body should just ignore the property.

This issue changes the return type to iterable.

Currently the `Message::$body` is typed as `?iterable`. This introduces unnecessary null-checks everywhere the message body is involved for no real gain. Messages that are not supposed to have a body should just ignore the property. This issue changes the return type to `iterable`.
c.fahner added this to the v0.2 milestone 2026-04-28 19:12:20 +02:00
c.fahner referenced this issue from a commit 2026-04-29 17:52:19 +02:00
c.fahner stopped working 2026-04-29 17:53:40 +02:00
1 minute 14 seconds
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 1 minute 14 seconds
c.fahner
1 minute 14 seconds
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
slendium/http#10
No description provided.