-
Notifications
You must be signed in to change notification settings - Fork 7
/
rector.php
29 lines (26 loc) · 1.13 KB
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
use Rector\CodeQuality\Rector\FuncCall\IntvalToTypeCastRector;
use Rector\Php74\Rector\LNumber\AddLiteralSeparatorToNumberRector;
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\AssertSameTrueFalseToAssertTrueFalseRector;
use Rector\PHPUnit\CodeQuality\Rector\MethodCall\UseSpecificWillMethodRector;
use Rector\PHPUnit\PHPUnit80\Rector\MethodCall\SpecificAssertInternalTypeRector;
use Rector\PHPUnit\Rector\Class_\PreferPHPUnitSelfCallRector;
return RectorConfig::configure()
->withPreparedSets(deadCode: true, codeQuality: true)
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
])
->withPhpSets($php82 = true)
->withRules([
AddVoidReturnTypeWhereNoReturnRector::class,
IntvalToTypeCastRector::class,
AddLiteralSeparatorToNumberRector::class,
SpecificAssertInternalTypeRector::class,
AssertSameTrueFalseToAssertTrueFalseRector::class,
PreferPHPUnitSelfCallRector::class,
UseSpecificWillMethodRector::class,
]);