File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,15 +77,15 @@ const getBuilderReturnType = (
77
77
}
78
78
79
79
if ( [ "static" , "self" ] . includes ( method . return ) ) {
80
- return `\\Illuminate\\Database\\Eloquent\\Builder<${ className } >` ;
80
+ return `\\Illuminate\\Database\\Eloquent\\Builder<${ className } >| ${ className } ` ;
81
81
}
82
82
83
83
const certainOfType = [ "sole" , "find" , "first" , "firstOrFail" ] . includes ( method . name ) ;
84
84
85
85
const returnType = method . return
86
86
. replace (
87
87
"$this" ,
88
- `\\Illuminate\\Database\\Eloquent\\Builder<${ className } >` ,
88
+ `\\Illuminate\\Database\\Eloquent\\Builder<${ className } >| ${ className } ` ,
89
89
)
90
90
. replace ( "\\TReturn" , "mixed" )
91
91
. replace ( "TReturn" , "mixed" )
@@ -202,7 +202,7 @@ const getAttributeBlocks = (
202
202
203
203
if ( ! [ "accessor" , "attribute" ] . includes ( attr . cast || "" ) ) {
204
204
blocks . push (
205
- `@method static \\Illuminate\\Database\\Eloquent\\Builder<${ className } > where${ attr . title_case } ($value)` ,
205
+ `@method static \\Illuminate\\Database\\Eloquent\\Builder<${ className } >| ${ className } > where${ attr . title_case } ($value)` ,
206
206
) ;
207
207
}
208
208
You can’t perform that action at this time.
0 commit comments