Skip to content

Commit ecf8e67

Browse files
committed
Update Rector to 2.3.0
+ use PHP 8.2 set + use PHPUnit 11.0 set
1 parent 694bc7e commit ecf8e67

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

tools/rector/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"require": {
3-
"rector/rector": "^1.0"
3+
"rector/rector": "2.3.0"
44
}
55
}

tools/rector/rector.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
<?php
22

33
declare(strict_types=1);
4-
5-
use Rector\CodeQuality\Rector\FunctionLike\SimplifyUselessVariableRector;
64
use Rector\Config\RectorConfig;
75
use Rector\PHPUnit\Set\PHPUnitSetList;
86

@@ -18,12 +16,9 @@
1816
$root . '/tools/ecs/vendor',
1917
$root . '/tools/psalm/vendor',
2018
$root . '/tools/rector/vendor',
21-
22-
// This one does not really match with the project's code style
23-
SimplifyUselessVariableRector::class,
2419
])
25-
->withPhpSets()
20+
->withPhpSets(php82: true)
2621
->withSets([
27-
PHPUnitSetList::PHPUNIT_100,
22+
PHPUnitSetList::PHPUNIT_110,
2823
])
2924
->withImportNames(importNames: false, removeUnusedImports: true);

0 commit comments

Comments
 (0)