From 580987af3577b89cd3a3c25394c23d6e1862ffa6 Mon Sep 17 00:00:00 2001 From: Filip Horvat Date: Fri, 8 Feb 2019 09:49:39 +0100 Subject: [PATCH] typehint --- src/EloquentJoinBuilder.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/EloquentJoinBuilder.php b/src/EloquentJoinBuilder.php index 5312fa0..b4be043 100644 --- a/src/EloquentJoinBuilder.php +++ b/src/EloquentJoinBuilder.php @@ -13,6 +13,7 @@ use Fico7489\Laravel\EloquentJoin\Relations\HasManyJoin; use Illuminate\Database\Eloquent\Relations\Relation; use Illuminate\Database\Eloquent\SoftDeletingScope; +use Illuminate\Database\Query\JoinClause; class EloquentJoinBuilder extends Builder { @@ -219,7 +220,7 @@ private function joinQuery($join, $relation, $relatedTableAlias) } } - private function applyClauseOnRelation($join, $method, $params, $relatedTableAlias) + private function applyClauseOnRelation(JoinClause $join, string $method, array $params, string $relatedTableAlias) { if (in_array($method, ['where', 'orWhere'])) { try {