From 2b0c4bd1cbf8585721e7dab3b75d02ec2dcd530c Mon Sep 17 00:00:00 2001 From: "R.Austin" <110375847+raustin-m@users.noreply.github.com> Date: Thu, 18 May 2023 18:42:12 +0900 Subject: [PATCH] Add phpdoc for generics in Collection (#171) --- 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')