-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrector.php
More file actions
37 lines (34 loc) · 1.21 KB
/
rector.php
File metadata and controls
37 lines (34 loc) · 1.21 KB
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
30
31
32
33
34
35
36
37
<?php
declare(strict_types=1);
use Rector\CodingStyle\Rector\ArrowFunction\ArrowFunctionDelegatingCallToFirstClassCallableRector;
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\FunctionLike\NarrowWideUnionReturnTypeRector;
use Rector\TypeDeclaration\Rector\ClassMethod\BoolReturnTypeFromBooleanStrictReturnsRector;
return RectorConfig::configure()
->withPhpSets(php82: true)
->withPreparedSets(
codeQuality: true,
codingStyle: true,
deadCode: true,
naming: true,
privatization: true,
typeDeclarations: true,
typeDeclarationDocblocks: true,
phpunitCodeQuality: true
)
->withComposerBased(phpunit: true)
->withSkip([
BoolReturnTypeFromBooleanStrictReturnsRector::class => [
__DIR__ . '/tests/FilterTest.php',
],
NarrowWideUnionReturnTypeRector::class => [
__DIR__ . '/tests/FilterTest.php',
],
ArrowFunctionDelegatingCallToFirstClassCallableRector::class => [
__DIR__ . '/tests/FinderTest.php',
],
])
->withParallel()
->withRootFiles()
->withPaths([__DIR__ . '/src', __DIR__ . '/tests'])
->withImportNames();