Skip to content

Commit

Permalink
fix: orIWhere command param count issue
Browse files Browse the repository at this point in the history
  • Loading branch information
craigAtCD committed May 31, 2024
1 parent 39ef001 commit 69b0330
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Database/Query/Mixins/NullOrEmptyMixin.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ public function orIWhere(): Closure
{
return function (string|array $column, $operator = null, $value = null): Builder {
/** @var \Illuminate\Database\Query\Builder $this */
[$value, $operator] = $this->prepareValueAndOperator(
$value,
$operator,
func_num_args() === 2
);
return $this->iWhere($column, $operator, $value, 'or');
};
}
Expand Down

0 comments on commit 69b0330

Please sign in to comment.