cast bindings to array.
This commit is contained in:
parent
1351a2b189
commit
087f50a52c
|
@ -196,6 +196,8 @@ public function statement($sql, $bindings = array())
|
||||||
*/
|
*/
|
||||||
protected function execute($sql, $bindings = array())
|
protected function execute($sql, $bindings = array())
|
||||||
{
|
{
|
||||||
|
$bindings = (array) $bindings;
|
||||||
|
|
||||||
// Since expressions are injected into the query as strings, we need to
|
// Since expressions are injected into the query as strings, we need to
|
||||||
// remove them from the array of bindings. After we have removed them,
|
// remove them from the array of bindings. After we have removed them,
|
||||||
// we'll reset the array so there aren't gaps in the keys.
|
// we'll reset the array so there aren't gaps in the keys.
|
||||||
|
|
Loading…
Reference in New Issue