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
114114 return str_replace (" " , "_ " , $ type );
115115 }
116116
117- protected function getValuesClause (array $ where = null ) : string
117+ protected function getValuesClause (array $ where = [] ) : string
118118 {
119- if (in_array ($ where ["type " ], ["NotNull " , "Null " ])) {
119+ if (! $ where
120+ || in_array ($ where ["type " ], ["NotNull " , "Null " ])
121+ ) {
120122 return "" ;
121123 }
122124
@@ -171,7 +173,7 @@ protected function getWhereClauses(array $wheres = []) : string
171173 $ value .= $ this ->getColumnClauses ($ where );
172174 $ value .= $ this ->getRawClauses ($ where );
173175 $ value .= $ this ->getInAndNotInClauses ($ where );
174- $ value .= $ this ->getOtherClauses ($ where, $ carry );
176+ $ value .= $ this ->getOtherClauses ($ where );
175177
176178 return $ value ;
177179 });
You can’t perform that action at this time.
0 commit comments