Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions webapp/src/DataTransferObject/Shadowing/LanguageEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@

class LanguageEvent implements EventData
{
/**
* @param list<string>|null $extensions
*/
public function __construct(
public readonly string $id,
public readonly ?array $extensions = null,
) {}
}
4 changes: 4 additions & 0 deletions webapp/src/Service/ExternalContestSourceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,10 @@ protected function validateLanguage(Event $event, EventData $data): void
]);
} else {
$this->removeWarning($event->type, $data->id, ExternalSourceWarning::TYPE_DATA_MISMATCH);

$toCheck = ['extensions' => $data->extensions];

$this->compareOrCreateValues($event, $data->id, $language, $toCheck);
}
}

Expand Down