Skip to content

Commit b2deb50

Browse files
committed
PHPStanエラー解消
1 parent 8af7a8d commit b2deb50

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Collection/ArrayList.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,11 +532,12 @@ final public function mapToDictionary(Closure $closure): array
532532
* @template TMapToGroupsValue
533533
*
534534
* @param Closure(TValue, int): array<TMapToGroupsKey, TMapToGroupsValue> $closure
535-
* @return array<TMapToGroupsKey, IArrayList<TMapToGroupsValue>>
535+
* @return array<TMapToGroupsKey, self<TMapToGroupsValue>>
536536
*/
537537
#[Override]
538538
final public function mapToGroups(Closure $closure): array
539539
{
540+
/** @var array<TMapToGroupsKey, array<int, TMapToGroupsValue>> $groups */
540541
$groups = $this->mapToDictionary($closure);
541542

542543
return array_map(static fn ($items) => new self($items), $groups);

0 commit comments

Comments
 (0)