File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -114,9 +114,11 @@ protected function getTypeClause($where) : string
114
114
return str_replace (" " , "_ " , $ type );
115
115
}
116
116
117
- protected function getValuesClause (array $ where = null ) : string
117
+ protected function getValuesClause (array $ where = [] ) : string
118
118
{
119
- if (in_array ($ where ["type " ], ["NotNull " , "Null " ])) {
119
+ if (! $ where
120
+ || in_array ($ where ["type " ], ["NotNull " , "Null " ])
121
+ ) {
120
122
return "" ;
121
123
}
122
124
@@ -171,7 +173,7 @@ protected function getWhereClauses(array $wheres = []) : string
171
173
$ value .= $ this ->getColumnClauses ($ where );
172
174
$ value .= $ this ->getRawClauses ($ where );
173
175
$ value .= $ this ->getInAndNotInClauses ($ where );
174
- $ value .= $ this ->getOtherClauses ($ where, $ carry );
176
+ $ value .= $ this ->getOtherClauses ($ where );
175
177
176
178
return $ value ;
177
179
});
You can’t perform that action at this time.
0 commit comments