Skip to content

Commit

Permalink
Resolve phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMuller committed Sep 4, 2024
1 parent cc94e8a commit 8ee6c28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"barryvdh/laravel-ide-helper": "^3.0",
"larastan/larastan": "^2.9",
"orchestra/testbench": "^9.0",
"phpstan/phpstan": "^1.10",
"phpstan/phpstan": "1.11.1",
"phpstan/phpstan-mockery": "^1.1",
"phpstan/phpstan-phpunit": "^1.4",
"phpunit/phpunit": "^11.0"
Expand Down
5 changes: 4 additions & 1 deletion src/Relations/BelongsToThrough.php
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ public function getRelationExistenceQuery(Builder $query, Builder $parentQuery,

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

/** @var \Illuminate\Database\Eloquent\Builder<\Illuminate\Database\Eloquent\Model> $query */
/** @var \Illuminate\Database\Eloquent\Builder<TRelatedModel> $query */
$query = $query->select($columns)->whereColumn(
$this->getQualifiedFirstLocalKeyName(),
'=',
Expand Down Expand Up @@ -387,6 +387,9 @@ public function getQualifiedFirstLocalKeyName()
* Make a new related instance for the given model.
*
* @inheritDoc
*
* @param \Illuminate\Database\Eloquent\Model $parent
* @return \Illuminate\Database\Eloquent\Model
*/
protected function newRelatedInstanceFor(Model $parent)
{
Expand Down

0 comments on commit 8ee6c28

Please sign in to comment.