Skip to content

Commit

Permalink
Mark HasManyDeep as generic model (#147)
Browse files Browse the repository at this point in the history
* Mark HasManyDeep as generic model

Check https://github.com/nunomaduro/larastan/blob/19866e06d5846f8c17460ce1c1808da8166d3747/UPGRADE.md#generic-relations for details.

* Apply suggestions from code review

Co-authored-by: Jonas Staudenmeir <[email protected]>

Co-authored-by: Jonas Staudenmeir <[email protected]>
(cherry picked from commit a1f549b)
  • Loading branch information
ahoiroman authored and staudenmeir committed Dec 7, 2021
1 parent df1c51b commit b121fdb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/HasManyDeep.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
use Illuminate\Pagination\CursorPaginator;
use Illuminate\Support\Collection;

/**
* @template TRelatedModel of \Illuminate\Database\Eloquent\Model
* @extends \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel>
*/
class HasManyDeep extends HasManyThrough
{
use HasEagerLimit;
Expand Down

0 comments on commit b121fdb

Please sign in to comment.