Skip to content

Commit

Permalink
downgrade match to switch for PHP < 8
Browse files Browse the repository at this point in the history
  • Loading branch information
schlndh committed Oct 20, 2023
1 parent 548f2eb commit ebcaa2a
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 ebcaa2a

Please sign in to comment.