diff --git a/src/Eloquent/Traits/HasOfDescendantsRelationships.php b/src/Eloquent/Traits/HasOfDescendantsRelationships.php index cdcb8c6..c7083fb 100644 --- a/src/Eloquent/Traits/HasOfDescendantsRelationships.php +++ b/src/Eloquent/Traits/HasOfDescendantsRelationships.php @@ -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 $query * @param TRelatedModel $parent * @param string $foreignKey * @param string $localKey * @param bool $andSelf - * @return \Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\HasManyOfDescendants + * @return \Staudenmeir\LaravelAdjacencyList\Eloquent\Relations\HasManyOfDescendants */ protected function newHasManyOfDescendants(Builder $query, Model $parent, $foreignKey, $localKey, $andSelf) {