$v ) { $ref->{$k} = $v; } return $ref; } /** * @return array> */ public static function refGroupsFromArray( array $refs ) { return array_map( fn ( $groupRefs ) => array_map( [ self::class, 'refFromArray' ], $groupRefs ), $refs ); } }