Align Base\MediaType to latest style standards #11

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

Currently the Base\MediaType and Base\MediaTypeName do not align with recent API standards. To align, MediaType and MediaTypeName would have to be renamed to ReadOnlyMediaType and ReadOnlyMediaTypeName, respectively.

Additionally, their ::fromString() methods should return Exception|self instead of throwing an exception.

This issue refactors these types to align better.

Currently the `Base\MediaType` and `Base\MediaTypeName` do not align with recent API standards. To align, `MediaType` and `MediaTypeName` would have to be renamed to `ReadOnlyMediaType` and `ReadOnlyMediaTypeName`, respectively. Additionally, their `::fromString()` methods should return `Exception|self` instead of throwing an exception. This issue refactors these types to align better.
c.fahner added this to the v0.2 milestone 2026-04-28 19:29:47 +02:00
c.fahner referenced this issue from a commit 2026-04-30 18:33:55 +02:00
c.fahner stopped working 2026-04-30 18:36:04 +02:00
34 minutes 9 seconds
c.fahner stopped working 2026-05-05 15:41:19 +02:00
2 minutes 48 seconds
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Total time spent: 36 minutes 57 seconds
c.fahner
36 minutes 57 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#11
No description provided.