Skip to content

Commit 9cb5e3d

Browse files
committed
chore: replace deprecated sets
1 parent c973bd7 commit 9cb5e3d

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

rector.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@
3838
use Rector\Php71\Rector\FuncCall\CountOnNullRector;
3939
use Rector\Php73\Rector\FuncCall\JsonThrowOnErrorRector;
4040
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
41+
use Rector\PHPUnit\CodeQuality\Rector\Class_\ConstructClassMethodToSetUpTestCaseRector;
42+
use Rector\PHPUnit\CodeQuality\Rector\Class_\YieldDataProviderRector;
4143
use Rector\PHPUnit\Set\PHPUnitSetList;
4244
use Rector\Privatization\Rector\Property\PrivatizeFinalClassPropertyRector;
4345
use Rector\Set\ValueObject\LevelSetList;
@@ -51,9 +53,8 @@
5153
$rectorConfig->sets([
5254
SetList::DEAD_CODE,
5355
LevelSetList::UP_TO_PHP_74,
54-
PHPUnitSetList::PHPUNIT_SPECIFIC_METHOD,
56+
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
5557
PHPUnitSetList::PHPUNIT_80,
56-
PHPUnitSetList::REMOVE_MOCKS,
5758
]);
5859

5960
$rectorConfig->parallel(240, 8, 1);
@@ -77,12 +78,18 @@
7778
__DIR__ . '/tests/_support',
7879
JsonThrowOnErrorRector::class,
7980
StringifyStrNeedlesRector::class,
81+
YieldDataProviderRector::class,
8082

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

88+
ConstructClassMethodToSetUpTestCaseRector::class => [
89+
// breaks the constructor
90+
__DIR__ . '/system/Test/TestResponse.php',
91+
],
92+
8693
RemoveUnusedConstructorParamRector::class => [
8794
// there are deprecated parameters
8895
__DIR__ . '/system/Debug/Exceptions.php',

0 commit comments

Comments
 (0)