Skip to content

Commit 6810fe3

Browse files
committed
[TASK] Update to Rector 2.6.2
https://github.com/rectorphp/rector/releases/tag/2.6.2 Also switch to Composer-based sets.
1 parent 874fb1d commit 6810fe3

2 files changed

Lines changed: 5 additions & 13 deletions

File tree

Build/rector/config.php

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
declare(strict_types=1);
44

55
use Rector\Config\RectorConfig;
6-
use Rector\PHPUnit\Set\PHPUnitSetList;
7-
use Rector\Set\ValueObject\LevelSetList;
86
use Rector\Set\ValueObject\SetList;
97

108
return RectorConfig::configure()
@@ -13,13 +11,12 @@
1311
__DIR__ . '/../../bin',
1412
__DIR__ . '/../../src',
1513
__DIR__ . '/../../tests',
16-
]
14+
],
15+
)
16+
->withComposerBased(
17+
phpunit: true,
1718
)
1819
->withSets([
19-
// Rector sets
20-
21-
LevelSetList::UP_TO_PHP_72,
22-
2320
// SetList::CODE_QUALITY,
2421
// SetList::CODING_STYLE,
2522
// SetList::DEAD_CODE,
@@ -28,10 +25,5 @@
2825
// SetList::NAMING,
2926
// SetList::PRIVATIZATION,
3027
SetList::TYPE_DECLARATION,
31-
32-
// PHPUnit sets
33-
34-
PHPUnitSetList::PHPUNIT_80,
35-
// PHPUnitSetList::PHPUNIT_CODE_QUALITY,
3628
])
3729
->withImportNames(true, true, false);

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"phpstan/phpstan-strict-rules": "1.6.2 || 2.0.12",
3636
"phpunit/phpunit": "8.5.53",
3737
"rawr/phpunit-data-provider": "3.3.1",
38-
"rector/rector": "1.2.10 || 2.6.1",
38+
"rector/rector": "1.2.10 || 2.6.2",
3939
"rector/type-perfect": "1.0.0 || 2.1.4",
4040
"squizlabs/php_codesniffer": "4.0.4",
4141
"thecodingmachine/phpstan-safe-rule": "1.2.0 || 1.4.7"

0 commit comments

Comments
 (0)