From 3c5d30f7579044c05b21803ccd87d60156b3f9c1 Mon Sep 17 00:00:00 2001 From: John Quairia Date: Fri, 10 Jul 2026 20:02:33 +0200 Subject: [PATCH] fix: lowercase gameplayFormat values before Frontier allowlist check Unique cards were failing the Frontier check when altered-core returned gameplayFormat entries with different casing than "frontier". --- src/Validator/Format/FrontierFormatValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Validator/Format/FrontierFormatValidator.php b/src/Validator/Format/FrontierFormatValidator.php index a0ef4c6..de78354 100644 --- a/src/Validator/Format/FrontierFormatValidator.php +++ b/src/Validator/Format/FrontierFormatValidator.php @@ -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)); }