Skip to content

Commit 86a20f3

Browse files
if there is a cast value, and mapping it failed, use it as is
1 parent 1e8b3fe commit 86a20f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/support/docblocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ const findInMapping = (
302302
};
303303

304304
const getActualType = (cast: string | null, type: string): string => {
305-
const finalType = findInMapping(castMapping, cast) ?? findInMapping(typeMapping, type) ?? "mixed";
305+
const finalType = findInMapping(castMapping, cast) || cast || findInMapping(typeMapping, type) || "mixed";
306306

307307
if (finalType.includes("\\") && !finalType.startsWith("\\")) {
308308
return `\\${finalType}`;

0 commit comments

Comments
 (0)