types
types copied to clipboard
Missing JsonSerializable interface
What i did:
$data = [
'quantity' => Quantity::from(5)
];
debug(json_encode($data));
Expected result:
{
"quantity": 5
}
Actual result:
{
"quantity": {}
}