Skip to content

Commit f79b0c7

Browse files
Fix some array shapes related to importing.
1 parent ebb27bb commit f79b0c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

webapp/src/Service/ImportExportService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,8 +641,8 @@ protected function importGroupsTsv(array $content, ?string &$message = null): in
641641
/**
642642
* Import groups JSON
643643
*
644-
* @param array<array{id: string, icpc_id: string, name: string, sortorder?: int,
645-
* color?: string, hidden?: true, allow_self_registration?: bool}> $data
644+
* @param array<array{id?: string, icpc_id: string, name: string, sortorder?: int,
645+
* color?: string, hidden?: bool, allow_self_registration?: bool}> $data
646646
* @param TeamCategory[]|null $saved The saved groups
647647
*/
648648
public function importGroupsJson(array $data, ?string &$message = null, ?array &$saved = null): int
@@ -732,7 +732,7 @@ protected function importGroupData(array $groupData, ?array &$saved = null): int
732732
* Import organizations JSON.
733733
*
734734
* @param array<array{shortname?: string, short_name?: string, short-name?: string, id: string, icpc_id?: string, name: string, formal_name?: string,
735-
* country: string, logo: array{href: string, mime: string, hash: string,
735+
* country: string, logo?: array{href: string, mime: string, hash: string,
736736
* filename: string, width: string|int, height: string|int}}> $data
737737
* @param TeamAffiliation[]|null $saved The saved groups
738738
*/

0 commit comments

Comments
 (0)