Skip to content

Commit 76791ba

Browse files
Remove superfluous code
1 parent 0bf4d90 commit 76791ba

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/TextUI/XmlConfiguration/Migration/MigrationBuilder.php

-11
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
*/
1010
namespace PHPUnit\TextUI\XmlConfiguration;
1111

12-
use function array_key_exists;
13-
use function sprintf;
1412
use function version_compare;
1513

1614
/**
@@ -47,15 +45,6 @@ final class MigrationBuilder
4745
*/
4846
public function build(string $fromVersion): array
4947
{
50-
if (!array_key_exists($fromVersion, self::AVAILABLE_MIGRATIONS)) {
51-
throw new MigrationBuilderException(
52-
sprintf(
53-
'Migration from schema version %s is not supported',
54-
$fromVersion,
55-
),
56-
);
57-
}
58-
5948
$stack = [];
6049

6150
foreach (self::AVAILABLE_MIGRATIONS as $version => $migrations) {

0 commit comments

Comments
 (0)