@@ -69,7 +69,7 @@ protected function getColumnClauses(array $where) : string
69
69
return "- {$ where ["boolean " ]}_ {$ where ["first " ]}_ {$ where ["operator " ]}_ {$ where ["second " ]}" ;
70
70
}
71
71
72
- protected function getCurrentBinding (string $ type , string $ bindingFallback ): string
72
+ protected function getCurrentBinding (string $ type , mixed $ bindingFallback = null ): mixed
73
73
{
74
74
return data_get ($ this ->query ->bindings , "{$ type }. {$ this ->currentBinding }" , $ bindingFallback );
75
75
}
@@ -87,7 +87,7 @@ protected function getInAndNotInClauses(array $where) : string
87
87
88
88
$ type = strtolower ($ where ["type " ]);
89
89
$ subquery = $ this ->getValuesFromWhere ($ where );
90
- $ values = collect ($ this ->getCurrentBinding ('where ' , "" ));
90
+ $ values = collect ($ this ->getCurrentBinding ('where ' , [] ));
91
91
92
92
if (Str::startsWith ($ subquery , $ values ->first ())) {
93
93
$ this ->currentBinding += count ($ where ["values " ]);
@@ -210,7 +210,7 @@ protected function getRawClauses(array $where) : string
210
210
211
211
while (count ($ queryParts ) > 1 ) {
212
212
$ clause .= "_ " . array_shift ($ queryParts );
213
- $ clause .= $ this ->getCurrentBinding ("where " , "" );
213
+ $ clause .= $ this ->getCurrentBinding ("where " );
214
214
$ this ->currentBinding ++;
215
215
}
216
216
@@ -282,7 +282,7 @@ protected function getValuesFromBindings(array $where, string $values) : string
282
282
$ this ->currentBinding ++;
283
283
284
284
if ($ where ["type " ] === "between " ) {
285
- $ values .= "_ " . $ this ->getCurrentBinding ("where " , "" );
285
+ $ values .= "_ " . $ this ->getCurrentBinding ("where " );
286
286
$ this ->currentBinding ++;
287
287
}
288
288
}
0 commit comments