From 76791baf27ec2f247bc574f0bec835f987f670b0 Mon Sep 17 00:00:00 2001 From: Sebastian Bergmann Date: Thu, 18 Jan 2024 17:19:35 +0100 Subject: [PATCH] Remove superfluous code --- .../XmlConfiguration/Migration/MigrationBuilder.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/TextUI/XmlConfiguration/Migration/MigrationBuilder.php b/src/TextUI/XmlConfiguration/Migration/MigrationBuilder.php index 2bb663814c7..a6b2642316d 100644 --- a/src/TextUI/XmlConfiguration/Migration/MigrationBuilder.php +++ b/src/TextUI/XmlConfiguration/Migration/MigrationBuilder.php @@ -9,8 +9,6 @@ */ namespace PHPUnit\TextUI\XmlConfiguration; -use function array_key_exists; -use function sprintf; use function version_compare; /** @@ -47,15 +45,6 @@ final class MigrationBuilder */ public function build(string $fromVersion): array { - if (!array_key_exists($fromVersion, self::AVAILABLE_MIGRATIONS)) { - throw new MigrationBuilderException( - sprintf( - 'Migration from schema version %s is not supported', - $fromVersion, - ), - ); - } - $stack = []; foreach (self::AVAILABLE_MIGRATIONS as $version => $migrations) {