Skip to content

Commit 6ea276e

Browse files
committed
fix: add downgrade match rector
1 parent a6d2fcc commit 6ea276e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bin/rector-downgrade.php

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Rector\DowngradePhp80\Rector\Catch_\DowngradeNonCapturingCatchesRector;
1616
use Rector\DowngradePhp80\Rector\Class_\DowngradePropertyPromotionRector;
1717
use Rector\DowngradePhp80\Rector\ClassMethod\DowngradeTrailingCommasInParamUseRector;
18+
use Rector\DowngradePhp80\Rector\Expression\DowngradeMatchToSwitchRector;
1819
use Rector\DowngradePhp80\Rector\FunctionLike\DowngradeMixedTypeDeclarationRector;
1920
use Rector\DowngradePhp80\Rector\FunctionLike\DowngradeUnionTypeDeclarationRector;
2021
use Rector\DowngradePhp80\Rector\NullsafeMethodCall\DowngradeNullsafeToTernaryOperatorRector;
@@ -35,6 +36,7 @@
3536
}
3637

3738
if ($targetPhpVersionId < 80000) {
39+
$config->rule(DowngradeMatchToSwitchRector::class);
3840
$config->rule(DowngradeMixedTypeDeclarationRector::class);
3941
$config->rule(DowngradeNonCapturingCatchesRector::class);
4042
$config->rule(DowngradeNullsafeToTernaryOperatorRector::class);

0 commit comments

Comments
 (0)