Closed
Description
If a component property's type-hint is int
and you try to hydrate with ''
, you get an error. I propose we automatically cast simple, scalar types:
int
:''
or' '
=>0
float
:''
or' '
=>0.0
bool
:''
or' '
=>false
?int
:''
or' '
=>null
?float
:''
or' '
=>null
?bool
:''
or' '
=>null
How to handle?
int
:'apple'
?
Metadata
Metadata
Assignees
Labels
No labels