Skip to content

Commit

Permalink
add TDeclaringModel to newHasManyOfDescendants
Browse files Browse the repository at this point in the history
  • Loading branch information
ariaieboy committed Nov 19, 2024
1 parent 620b937 commit 14b8285
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Eloquent/Traits/HasOfDescendantsRelationships.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ public function hasManyOfDescendantsAndSelf($related, $foreignKey = null, $local
* Instantiate a new HasManyOfDescendants relationship.
*
* @template TRelatedModel of Model
*
* @template TDeclaringModel of $this
* @param \Illuminate\Database\Eloquent\Builder<TRelatedModel> $query
* @param TRelatedModel $parent
* @param string $foreignKey
* @param string $localKey
* @param bool $andSelf
* @return \Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\HasManyOfDescendants<TRelatedModel>
* @return \Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\HasManyOfDescendants<TRelatedModel,TDeclaringModel>
*/
protected function newHasManyOfDescendants(Builder $query, Model $parent, $foreignKey, $localKey, $andSelf)
{
Expand Down

0 comments on commit 14b8285

Please sign in to comment.