Skip to content

Commit 56fea1d

Browse files
committed
refactor(config): update PHPUnit set and add new rule
- Update PHPUnit set to use PHPUNIT_90 - Add new rule to convert annotations to attributes
1 parent 5650041 commit 56fea1d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

rector.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,20 @@
2121
use Rector\CodingStyle\Rector\Encapsed\EncapsedStringsToSprintfRector;
2222
use Rector\CodingStyle\Rector\Encapsed\WrapEncapsedVariableInCurlyBracesRector;
2323
use Rector\Config\RectorConfig;
24-
use Rector\Core\Configuration\Option;
25-
use Rector\Core\ValueObject\PhpVersion;
24+
use Rector\Configuration\Option;
2625
use Rector\DeadCode\Rector\Assign\RemoveUnusedVariableAssignRector;
2726
use Rector\DeadCode\Rector\ClassMethod\RemoveEmptyClassMethodRector;
2827
use Rector\EarlyReturn\Rector\If_\ChangeAndIfToEarlyReturnRector;
2928
use Rector\EarlyReturn\Rector\Return_\ReturnBinaryOrToEarlyReturnRector;
3029
use Rector\EarlyReturn\Rector\StmtsAwareInterface\ReturnEarlyIfVariableRector;
3130
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\RemoveExpectAnyFromMockRector;
32-
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
3331
use Rector\PHPUnit\Set\PHPUnitSetList;
3432
use Rector\Set\ValueObject\DowngradeLevelSetList;
3533
use Rector\Set\ValueObject\LevelSetList;
3634
use Rector\Set\ValueObject\SetList;
3735
use Rector\Strict\Rector\BooleanNot\BooleanInBooleanNotRuleFixerRector;
3836
use Rector\TypeDeclaration\Rector\ClassMethod\StrictArrayParamDimFetchRector;
37+
use Rector\ValueObject\PhpVersion;
3938

4039
return static function (RectorConfig $rectorConfig): void {
4140
define('MHASH_XXH3', 2 << 0);
@@ -145,8 +144,9 @@
145144
SetList::EARLY_RETURN,
146145
SetList::INSTANCEOF,
147146

148-
PHPUnitLevelSetList::UP_TO_PHPUNIT_90,
147+
PHPUnitSetList::PHPUNIT_90,
149148
PHPUnitSetList::PHPUNIT_CODE_QUALITY,
149+
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES,
150150
]);
151151

152152
$rectorConfig->rules([

0 commit comments

Comments
 (0)