We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0d60ea3 commit f7b609bCopy full SHA for f7b609b
rector.php
@@ -3,29 +3,10 @@
3
declare(strict_types=1);
4
5
use Rector\Config\RectorConfig;
6
-use Rector\Core\ValueObject\PhpVersion;
7
-use Rector\Set\ValueObject\LevelSetList;
+use Rector\ValueObject\PhpVersion;
8
9
-return static function (RectorConfig $rectorConfig): void {
10
- $rectorConfig
11
- ->paths(
12
- [
13
- __DIR__.'/src',
14
- ]
15
- )
16
- ;
17
-
18
19
- ->phpVersion(
20
- PhpVersion::PHP_80
21
22
23
24
25
- ->sets(
26
27
- LevelSetList::UP_TO_PHP_80,
28
29
30
31
-};
+return RectorConfig::configure()
+ ->withPhpVersion(PhpVersion::PHP_80)
+ ->withPhpSets(php80: true)
+ ->withPaths([__DIR__.'/src'])
+;
0 commit comments