-
Notifications
You must be signed in to change notification settings - Fork 179
Expand file tree
/
Copy path.rector.php
More file actions
24 lines (22 loc) · 750 Bytes
/
.rector.php
File metadata and controls
24 lines (22 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
declare(strict_types=1);
return \Rector\Config\RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
// uncomment to reach your current PHP version
//->withPhpSets()
->withPhp74Sets()
->withPhpVersion(70400)
->withSets([
\Rector\Set\ValueObject\SetList::CODE_QUALITY,
\Rector\Set\ValueObject\SetList::DEAD_CODE,
\Art4\RectorBcLibrary\Set::BC_TYPE_DECLARATION,
\Rector\Set\ValueObject\SetList::PHP_POLYFILLS,
\Rector\Set\ValueObject\SetList::EARLY_RETURN,
\Rector\Set\ValueObject\SetList::INSTANCEOF,
\Rector\Set\ValueObject\SetList::STRICT_BOOLEANS,
\Rector\Set\ValueObject\SetList::PRIVATIZATION,
])
;