Skip to content

Commit 5599c22

Browse files
authored
[TASK] Update to Rector 2.6.2 (#1609)
https://github.com/rectorphp/rector/releases/tag/2.6.2 Also switch to Composer-based sets.
1 parent 874fb1d commit 5599c22

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

Build/rector/config.php

Lines changed: 1 addition & 11 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()
@@ -15,11 +13,8 @@
1513
__DIR__ . '/../../tests',
1614
]
1715
)
16+
->withComposerBased()
1817
->withSets([
19-
// Rector sets
20-
21-
LevelSetList::UP_TO_PHP_72,
22-
2318
// SetList::CODE_QUALITY,
2419
// SetList::CODING_STYLE,
2520
// SetList::DEAD_CODE,
@@ -28,10 +23,5 @@
2823
// SetList::NAMING,
2924
// SetList::PRIVATIZATION,
3025
SetList::TYPE_DECLARATION,
31-
32-
// PHPUnit sets
33-
34-
PHPUnitSetList::PHPUNIT_80,
35-
// PHPUnitSetList::PHPUNIT_CODE_QUALITY,
3626
])
3727
->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)