Skip to content

Commit

Permalink
Add phpdoc for generics in Collection (#171)
Browse files Browse the repository at this point in the history
Co-authored-by: R.Austin <[email protected]>
  • Loading branch information
staudenmeir and raustin-m committed Nov 19, 2023
1 parent 99d1485 commit 55281f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Eloquent/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

use Illuminate\Database\Eloquent\Collection as Base;

/**
* @template TKey of array-key
* @template TModel of \Illuminate\Database\Eloquent\Model
*
* @extends \Illuminate\Database\Eloquent\Collection<TKey, TModel>
*/
class Collection extends Base
{
public function toTree($childrenRelation = 'children')
Expand Down

0 comments on commit 55281f3

Please sign in to comment.