Skip to content

Commit

Permalink
Support PHPStan v1.12.1
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Sep 4, 2024
1 parent 949c7d9 commit 7a9f8b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Relations/BelongsToThrough.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,11 +318,14 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery,

$foreignKey = $from . '.' . $this->getFirstForeignKeyName();

return $query->select($columns)->whereColumn(
/** @var \Illuminate\Database\Eloquent\Builder<\Illuminate\Database\Eloquent\Model> $query */
$query = $query->select($columns)->whereColumn(
$this->getQualifiedFirstLocalKeyName(),
'=',
$foreignKey
);

return $query;
}

/**
Expand Down

0 comments on commit 7a9f8b4

Please sign in to comment.