dedoc/scramble

date model attributes have object type instead of string type

Closed this issue · 1 comments

This is regression of #239

As I understood this bug was reintroduced after adding support for inferring types of model attributes from model casts

'date', 'datetime', 'custom_datetime' => new ObjectType(Carbon::class),
'immutable_date', 'immutable_datetime', 'immutable_custom_datetime' => new ObjectType(CarbonImmutable::class),

@layerok I would be happy to accept a PR for this issue with some tests 😇