Skip to content

Commit

Permalink
downgrade match to switch for older PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
jiripudil committed Jun 20, 2023
1 parent ab27d4a commit e086d29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/rector-downgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use Rector\DowngradePhp80\Rector\Catch_\DowngradeNonCapturingCatchesRector;
use Rector\DowngradePhp80\Rector\Class_\DowngradePropertyPromotionRector;
use Rector\DowngradePhp80\Rector\ClassMethod\DowngradeTrailingCommasInParamUseRector;
use Rector\DowngradePhp80\Rector\Expression\DowngradeMatchToSwitchRector;
use Rector\DowngradePhp80\Rector\FunctionLike\DowngradeMixedTypeDeclarationRector;
use Rector\DowngradePhp80\Rector\FunctionLike\DowngradeUnionTypeDeclarationRector;
use Rector\DowngradePhp80\Rector\Property\DowngradeUnionTypeTypedPropertyRector;
Expand Down Expand Up @@ -42,6 +43,7 @@
$config->rule(DowngradePropertyPromotionRector::class);
$config->rule(DowngradeUnionTypeDeclarationRector::class);
$config->rule(DowngradeMixedTypeDeclarationRector::class);
$config->rule(DowngradeMatchToSwitchRector::class);
}

if ($targetPhpVersionId < 70400) {
Expand Down

0 comments on commit e086d29

Please sign in to comment.