Skip to content

Commit

Permalink
chore: replace deprecated sets
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Sep 6, 2023
1 parent c973bd7 commit 9cb5e3d
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
use Rector\Php71\Rector\FuncCall\CountOnNullRector;
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\ConstructClassMethodToSetUpTestCaseRector;
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
use Rector\Set\ValueObject\LevelSetList;
Expand All @@ -51,9 +53,8 @@
$rectorConfig->sets([
SetList::DEAD_CODE,
LevelSetList::UP_TO_PHP_74,
PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD,
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
PHPUnitSetList::PHPUNIT_80,
PHPUnitSetList::REMOVE_MOCKS,
]);

$rectorConfig->parallel(240, 8, 1);
Expand All @@ -77,12 +78,18 @@
__DIR__ . '/tests/_support',
JsonThrowOnErrorRector::class,
StringifyStrNeedlesRector::class,
YieldDataProviderRector::class,

RemoveUnusedPrivateMethodRector::class => [
// private method called via getPrivateMethodInvoker
__DIR__ . '/tests/system/Test/ReflectionHelperTest.php',
],

ConstructClassMethodToSetUpTestCaseRector::class => [
// breaks the constructor
__DIR__ . '/system/Test/TestResponse.php',
],

RemoveUnusedConstructorParamRector::class => [
// there are deprecated parameters
__DIR__ . '/system/Debug/Exceptions.php',
Expand Down

0 comments on commit 9cb5e3d

Please sign in to comment.