Skip to content

Commit

Permalink
Improve types
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Oct 6, 2024
1 parent 5b0811b commit 0d649c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Eloquent/Traits/ConcatenatesRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ trait ConcatenatesRelationships
/**
* Define a has-many-deep relationship from existing relationships.
*
* @param callable|\Illuminate\Database\Eloquent\Relations\Relation<\Illuminate\Database\Eloquent\Model> ...$relations
* @param callable|\Illuminate\Database\Eloquent\Relations\Relation<*> ...$relations
* @return \Staudenmeir\EloquentHasManyDeep\HasManyDeep<\Illuminate\Database\Eloquent\Model, $this>
*/
public function hasManyDeepFromRelations(...$relations)
Expand Down Expand Up @@ -49,7 +49,7 @@ public function hasManyDeepFromRelations(...$relations)
/**
* Define a has-one-deep relationship from existing relationships.
*
* @param callable|\Illuminate\Database\Eloquent\Relations\Relation<\Illuminate\Database\Eloquent\Model> ...$relations
* @param callable|\Illuminate\Database\Eloquent\Relations\Relation<*> ...$relations
* @return \Staudenmeir\EloquentHasManyDeep\HasOneDeep<\Illuminate\Database\Eloquent\Model, $this>
*/
public function hasOneDeepFromRelations(...$relations)
Expand Down
4 changes: 2 additions & 2 deletions src/Eloquent/Traits/ReversesRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ trait ReversesRelationships
* @template TDeclaringModel of \Illuminate\Database\Eloquent\Model
*
* @param \Staudenmeir\EloquentHasManyDeep\HasManyDeep<TDeclaringModel, TRelatedModel> $relation
* @return \Staudenmeir\EloquentHasManyDeep\HasManyDeep<TRelatedModel, $this>
* @return \Staudenmeir\EloquentHasManyDeep\HasManyDeep<TRelatedModel, TDeclaringModel>
*/
public function hasManyDeepFromReverse(HasManyDeep $relation): HasManyDeep
{
Expand All @@ -32,7 +32,7 @@ public function hasManyDeepFromReverse(HasManyDeep $relation): HasManyDeep
* @template TDeclaringModel of \Illuminate\Database\Eloquent\Model
*
* @param \Staudenmeir\EloquentHasManyDeep\HasManyDeep<TDeclaringModel, TRelatedModel> $relation
* @return \Staudenmeir\EloquentHasManyDeep\HasOneDeep<TRelatedModel, $this>
* @return \Staudenmeir\EloquentHasManyDeep\HasOneDeep<TRelatedModel, TDeclaringModel>
*/
public function hasOneDeepFromReverse(HasManyDeep $relation): HasOneDeep
{
Expand Down

0 comments on commit 0d649c1

Please sign in to comment.