Skip to content

Commit

Permalink
Updated for support only PHP 7.4
Browse files Browse the repository at this point in the history
  • Loading branch information
idmarinas committed Nov 9, 2023
1 parent e4503d4 commit 7d900ab
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector;
use Rector\CodeQuality\Rector\Include_\AbsolutizeRequireAndIncludePathRector;
use Rector\CodeQuality\Rector\If_\ShortenElseIfRector;
use Rector\Symfony\Set\SymfonySetList;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Core\ValueObject\PhpVersion;
use Rector\Doctrine\Set\DoctrineSetList;
use Rector\Set\ValueObject\SetList;
Expand All @@ -29,17 +28,9 @@
$rectorConfig->import(SetList::DEAD_CODE);
$rectorConfig->import(SetList::CODE_QUALITY);
$rectorConfig->import(SetList::PHP_74);
$rectorConfig->import(SetList::PHP_80);
$rectorConfig->import(SetList::PHP_81);
$rectorConfig->import(SetList::FRAMEWORK_EXTRA_BUNDLE_40);
$rectorConfig->import(SetList::FRAMEWORK_EXTRA_BUNDLE_50);

//-- Symfony Framework
$rectorConfig->import(SymfonySetList::SYMFONY_40);
$rectorConfig->import(SymfonySetList::SYMFONY_41);
$rectorConfig->import(SymfonySetList::SYMFONY_42);
$rectorConfig->import(SymfonySetList::SYMFONY_43);
$rectorConfig->import(SymfonySetList::SYMFONY_44);
$rectorConfig->import(SymfonyLevelSetList::UP_TO_SYMFONY_44);
$rectorConfig->import(TwigSetList::TWIG_240);
$rectorConfig->import(DoctrineSetList::DOCTRINE_25);
$rectorConfig->import(DoctrineSetList::DOCTRINE_ORM_29);
Expand All @@ -51,8 +42,6 @@
//-- Skip some rules/files ...
$rectorConfig->skip([
__DIR__.'/src/core/Twig/NodeVisitor',
ShortenElseIfRector::class,
EventListenerToEventSubscriberRector::class,
CallableThisArrayToAnonymousFunctionRector::class,
AbsolutizeRequireAndIncludePathRector::class
]);
Expand Down

0 comments on commit 7d900ab

Please sign in to comment.