Updated rector config

This commit is contained in:
Jan Böhmer 2025-07-14 00:36:35 +02:00
parent dc480f755c
commit f215bd11cd

View file

@ -7,6 +7,7 @@ use Rector\CodingStyle\Rector\FuncCall\CountArrayToEmptyArrayComparisonRector;
use Rector\Config\RectorConfig; use Rector\Config\RectorConfig;
use Rector\Doctrine\Set\DoctrineSetList; use Rector\Doctrine\Set\DoctrineSetList;
use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector; use Rector\PHPUnit\CodeQuality\Rector\Class_\PreferPHPUnitThisCallRector;
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\AssertEmptyNullableObjectToAssertInstanceofRector;
use Rector\PHPUnit\Set\PHPUnitSetList; use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList; use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList; use Rector\Set\ValueObject\SetList;
@ -32,6 +33,8 @@ return RectorConfig::configure()
->withSets([ ->withSets([
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES, PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
PHPUnitSetList::PHPUNIT_90,
PHPUnitSetList::PHPUNIT_110,
]) ])
->withRules([ ->withRules([
@ -39,6 +42,10 @@ return RectorConfig::configure()
]) ])
->withSkip([ ->withSkip([
//Leave our AssertNull tests alone
AssertEmptyNullableObjectToAssertInstanceofRector::class,
CountArrayToEmptyArrayComparisonRector::class, CountArrayToEmptyArrayComparisonRector::class,
//Leave our !== null checks alone //Leave our !== null checks alone
FlipTypeControlToUseExclusiveTypeRector::class, FlipTypeControlToUseExclusiveTypeRector::class,