Skip to content

Commit

Permalink
Fix PHPstan issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vmcj authored Sep 29, 2023
1 parent da4d3ea commit e58649f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webapp/src/Service/ImportExportService.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function importContestData(mixed $data, ?string &$errorMessage = null, st
$invalid_regex,
'_',
$data['short_name'] ?? $data['shortname'] ?? $data['short-name'] ?? $data['id']
);
));
$contest = $this->em->getRepository(Contest::class)->findOneBy(['externalid' => $newShortNameAndExternalId]) ?: new Contest();
$contest
->setName($data['name'] ?? $data['formal_name'] )
Expand Down

0 comments on commit e58649f

Please sign in to comment.