From 58e7e9eafe9a282fa22c9dc150fae46e23678bdc Mon Sep 17 00:00:00 2001 From: PrinsFrank Date: Sat, 13 May 2023 10:09:24 +0200 Subject: [PATCH] Don't remove deprecated values when updating spec --- dev/SpecUpdater.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dev/SpecUpdater.php b/dev/SpecUpdater.php index 43b1feac..593e9283 100644 --- a/dev/SpecUpdater.php +++ b/dev/SpecUpdater.php @@ -139,10 +139,6 @@ public static function update(Event $event): void $existingValues[$existingValue->name] = $existingValue->value; } foreach (array_diff_key($existingValues, $nameValuePairs) as $deprecatedKey => $deprecatedValue) { - if (array_key_exists($deprecatedKey, $existingValues)) { - continue; - } - $enumCases[] = new EnumCase($specFQN::from($deprecatedValue)->name, $deprecatedValue, true); }