Skip to content

Commit 27709c0

Browse files
authored
chore(deps): Update rector (#20)
1 parent 10a109b commit 27709c0

File tree

4 files changed

+34
-28
lines changed

4 files changed

+34
-28
lines changed

.github/workflows/cs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ jobs:
2222
fail-fast: true
2323
matrix:
2424
php:
25+
# Should be the lowest supported PHP version.
26+
# To also adjust the PHP version in the following files:
27+
# - vendor-bin/php-cs-fixer/composer.json
28+
# - vendor-bin/rector/composer.json
2529
- "8.1"
2630

2731
steps:

rector.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
declare(strict_types=1);
3636

3737
use Rector\Config\RectorConfig;
38-
use Rector\Php71\Rector\FuncCall\CountOnNullRector;
3938
use Rector\Set\ValueObject\LevelSetList;
4039

4140
return static function (RectorConfig $rectorConfig): void {
@@ -47,8 +46,4 @@
4746
$rectorConfig->sets([
4847
LevelSetList::UP_TO_PHP_81,
4948
]);
50-
51-
$rectorConfig->skip([
52-
CountOnNullRector::class,
53-
]);
5449
};

vendor-bin/rector/composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"require-dev": {
3-
"rector/rector": "^0.18.4"
3+
"rector/rector": "^2.0"
4+
},
5+
"config": {
6+
"platform": {
7+
"php": "8.1"
8+
}
49
}
510
}

vendor-bin/rector/composer.lock

Lines changed: 24 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)