-
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathrector.php
More file actions
20 lines (17 loc) · 613 Bytes
/
rector.php
File metadata and controls
20 lines (17 loc) · 613 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
return RectorConfig::configure()
->withPaths([
__DIR__.'/app',
__DIR__.'/tests',
])
// uncomment to reach your current PHP version
->withPhpSets(php81: true)
->withPreparedSets(deadCode: true, codingStyle: true)
->withRules([
AddVoidReturnTypeWhereNoReturnRector::class,
InlineConstructorDefaultToPropertyRector::class,
]);