Skip to content

Commit f7b609b

Browse files
authored
chore: upgrade rector configuration (#261)
1 parent 0d60ea3 commit f7b609b

File tree

1 file changed

+6
-25
lines changed

1 file changed

+6
-25
lines changed

Diff for: rector.php

+6-25
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,10 @@
33
declare(strict_types=1);
44

55
use Rector\Config\RectorConfig;
6-
use Rector\Core\ValueObject\PhpVersion;
7-
use Rector\Set\ValueObject\LevelSetList;
6+
use Rector\ValueObject\PhpVersion;
87

9-
return static function (RectorConfig $rectorConfig): void {
10-
$rectorConfig
11-
->paths(
12-
[
13-
__DIR__.'/src',
14-
]
15-
)
16-
;
17-
18-
$rectorConfig
19-
->phpVersion(
20-
PhpVersion::PHP_80
21-
)
22-
;
23-
24-
$rectorConfig
25-
->sets(
26-
[
27-
LevelSetList::UP_TO_PHP_80,
28-
]
29-
)
30-
;
31-
};
8+
return RectorConfig::configure()
9+
->withPhpVersion(PhpVersion::PHP_80)
10+
->withPhpSets(php80: true)
11+
->withPaths([__DIR__.'/src'])
12+
;

0 commit comments

Comments
 (0)