Skip to content

Commit

Permalink
Add limit bindings for having between + tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
KaneCohen committed Jan 21, 2021
1 parent 7797c2a commit fd2d667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Query/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@ public function havingBetween($column, array $values, $boolean = 'and', $not = f

$this->havings[] = compact('type', 'column', 'values', 'boolean', 'not');

$this->addBinding($this->cleanBindings($values), 'having');
$this->addBinding(array_slice($this->cleanBindings(Arr::flatten($values)), 0, 2), 'having');

return $this;
}
Expand Down

0 comments on commit fd2d667

Please sign in to comment.