Skip to content

Commit 49fc438

Browse files
call getActualType with the new parameters
1 parent a4b8cc2 commit 49fc438

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/support/docblocks.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ const getAttributeBlocks = (
199199
};
200200

201201
const getAttributeType = (attr: Eloquent.Attribute): string => {
202-
const type = getActualType(attr.cast || attr.type);
202+
const type = getActualType(attr.cast, attr.type);
203203

204204
if (attr.nullable && type !== "mixed") {
205-
return `${type}|null`
205+
return `${type}|null`;
206206
}
207207

208208
return type;

0 commit comments

Comments
 (0)