Skip to content
Merged
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/Validator/Format/FrontierFormatValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private function validateFrontierUniques(Deck $deck, array $cardsData): array
continue;
}

$gameplayFormats = $data['gameplayFormat'] ?? [];
$gameplayFormats = array_map('strtolower', $data['gameplayFormat'] ?? []);
if (!in_array(self::GAMEPLAY_FORMAT_KEY, $gameplayFormats, true)) {
$errors[] = sprintf('Unique card "%s" is not part of the Frontier format allowlist.', $this->getCardName($data));
}
Expand Down
Loading