Skip to content

Commit

Permalink
Don't remove deprecated values when updating spec
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinsFrank committed May 13, 2023
1 parent 027646b commit 58e7e9e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dev/SpecUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 58e7e9e

Please sign in to comment.