Pass along type info from a slot object.
Auto populate if coming from a #[Slots(bindPromotedProperties)])
Otherwise accept from a new Slot() as a string but validate and upcast.
Should accept strings but always computes to a PHPTYPE object of some kind and get stores in Slots.
An object should be used so we can abstract to a different validation system later (e.g symfony validator)
Pass along type info from a slot object.
Auto populate if coming from a
#[Slots(bindPromotedProperties)])Otherwise accept from a
new Slot()as a string but validate and upcast.Should accept strings but always computes to a PHPTYPE object of some kind and get stores in
Slots.An object should be used so we can abstract to a different validation system later (e.g symfony validator)