Skip to content

Commit

Permalink
Respect the signature of whereRaw, fix #18952 (#20234)
Browse files Browse the repository at this point in the history
Would lead to
```
FatalThrowableError
Type error: Argument 2 passed to Illuminate\Database\Query\Builder::orWhereRaw() must be of the type array, string given
```
otherwise.
  • Loading branch information
u1735067 authored and taylorotwell committed Jul 25, 2017
1 parent 7f7eb7c commit fab2e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ public function whereRaw($sql, $bindings = [], $boolean = 'and')
* @param array $bindings
* @return \Illuminate\Database\Query\Builder|static
*/
public function orWhereRaw($sql, array $bindings = [])
public function orWhereRaw($sql, $bindings = [])
{
return $this->whereRaw($sql, $bindings, 'or');
}
Expand Down

0 comments on commit fab2e13

Please sign in to comment.