Skip to content

Commit

Permalink
typehint
Browse files Browse the repository at this point in the history
  • Loading branch information
fico7489 committed Feb 8, 2019
1 parent 528e5d1 commit 580987a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/EloquentJoinBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 580987a

Please sign in to comment.