Skip to content

Commit e77e623

Browse files
add find to the methods where we are certain of the return type
1 parent 6c69083 commit e77e623

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
@@ -80,7 +80,7 @@ const getBuilderReturnType = (
8080
return `\\Illuminate\\Database\\Eloquent\\Builder<${className}>`;
8181
}
8282

83-
const certainOfType = ["sole", "first", "firstOrFail"].includes(method.name);
83+
const certainOfType = ["sole", "find", "first", "firstOrFail"].includes(method.name);
8484

8585
const returnType = method.return
8686
.replace(

0 commit comments

Comments
 (0)