Skip to content

Commit

Permalink
make params mandatory ...
Browse files Browse the repository at this point in the history
  • Loading branch information
fico7489 committed Oct 24, 2018
1 parent 8089714 commit 85997f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EloquentJoinBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ public function where($column, $operator = null, $value = null, $boolean = 'and'
return $this;
}

public function whereJoin($column, $operator = null, $value = null, $boolean = 'and')
public function whereJoin($column, $operator, $value, $boolean = 'and')
{
$query = $this->baseBuilder ? $this->baseBuilder : $this;
$column = $query->performJoin($column);

return $this->where($column, $operator, $value, $boolean);
}

public function orWhereJoin($column, $operator = null, $value = null)
public function orWhereJoin($column, $operator, $value)
{
$query = $this->baseBuilder ? $this->baseBuilder : $this;
$column = $query->performJoin($column);
Expand Down

0 comments on commit 85997f7

Please sign in to comment.