Skip to content

Commit

Permalink
Remove superfluous code
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jan 18, 2024
1 parent 0bf4d90 commit 76791ba
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/TextUI/XmlConfiguration/Migration/MigrationBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
*/
namespace PHPUnit\TextUI\XmlConfiguration;

use function array_key_exists;
use function sprintf;
use function version_compare;

/**
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 76791ba

Please sign in to comment.