Skip to content

Commit

Permalink
jarektkaczyk#27 Fix Parameter Grouping with Laravel 7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrajp committed Jun 3, 2022
1 parent 60f5811 commit fef1e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function select($columns = ['*'])
*/
public function where($column, $operator = null, $value = null, $boolean = 'and')
{
if (!in_array(strtolower($operator), $this->operators, true)) {
if (!$column instanceof Closure && !in_array(strtolower($operator), $this->operators, true)) {
list($value, $operator) = [$operator, '='];
}

Expand Down

0 comments on commit fef1e71

Please sign in to comment.