From 55281f3c64773fc486a6d37ccc109846a84ab41e Mon Sep 17 00:00:00 2001 From: Jonas Staudenmeir Date: Sun, 19 Nov 2023 16:26:27 +0100 Subject: [PATCH] Add phpdoc for generics in Collection (#171) Co-authored-by: R.Austin <110375847+raustin-m@users.noreply.github.com> --- src/Eloquent/Collection.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Eloquent/Collection.php b/src/Eloquent/Collection.php index db46961..b7e8f73 100644 --- a/src/Eloquent/Collection.php +++ b/src/Eloquent/Collection.php @@ -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 + */ class Collection extends Base { public function toTree($childrenRelation = 'children')