From bd76a45263ea0ceab3cc2cd984dfabdc84bdba8b Mon Sep 17 00:00:00 2001 From: kakiuchi-shigenao Date: Tue, 7 Oct 2025 18:53:08 +0900 Subject: [PATCH] =?UTF-8?q?ArrayList=20mapToGroups=20=E3=83=A1=E3=82=BD?= =?UTF-8?q?=E3=83=83=E3=83=89=20=E3=81=AE=20PHPDoc=20=E8=AA=A4=E8=A8=98?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20Fixes=20#63?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Collection/ArrayList.php | 4 ++-- src/Collection/List/IArrayList.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Collection/ArrayList.php b/src/Collection/ArrayList.php index 75323a6..3a70cad 100644 --- a/src/Collection/ArrayList.php +++ b/src/Collection/ArrayList.php @@ -532,14 +532,14 @@ final public function mapToDictionary(Closure $closure): array * @template TMapToGroupsValue * * @param Closure(TValue, int): array $closure - * @return array> + * @return array> */ #[Override] final public function mapToGroups(Closure $closure): array { $groups = $this->mapToDictionary($closure); - return array_map(static fn ($items) => new static($items), $groups); + return array_map(static fn ($items) => new self($items), $groups); } #[Override] diff --git a/src/Collection/List/IArrayList.php b/src/Collection/List/IArrayList.php index 4c93354..c18c21b 100644 --- a/src/Collection/List/IArrayList.php +++ b/src/Collection/List/IArrayList.php @@ -220,7 +220,7 @@ public function mapToDictionary(Closure $closure): array; * @template TMapToGroupsValue * * @param Closure(TValue, int): array $closure - * @return array> + * @return array> */ public function mapToGroups(Closure $closure): array;