From 85997f749e78dedb9490e02edf9a1ddd7a652338 Mon Sep 17 00:00:00 2001 From: Filip Horvat Date: Wed, 24 Oct 2018 08:11:51 +0200 Subject: [PATCH] make params mandatory ... --- src/EloquentJoinBuilder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EloquentJoinBuilder.php b/src/EloquentJoinBuilder.php index f4e4fae..0b53e03 100644 --- a/src/EloquentJoinBuilder.php +++ b/src/EloquentJoinBuilder.php @@ -46,7 +46,7 @@ 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); @@ -54,7 +54,7 @@ public function whereJoin($column, $operator = null, $value = null, $boolean = ' 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);