Add type parameters to Map schema type #68

Open
opened 2026-09-22 18:41:14 +02:00 by c.fahner · 1 comment
Owner

Currently the Map schema type does not support type enforcement for keys/values. Constructor parameters should be added that provide one or more types from a static closure (or a class-string directly).

It should only allow key types that are serialized to string|int.

Currently the `Map` schema type does not support type enforcement for keys/values. Constructor parameters should be added that provide one or more types from a static closure (or a `class-string` directly). It should only allow key types that are serialized to `string|int`.
Author
Owner

Could be an opportunity to introduce a Common\TypeParams attribute.

Could be an opportunity to introduce a `Common\TypeParams` attribute.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
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/ocd#68
No description provided.