-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrector.dist.php
More file actions
39 lines (36 loc) · 1.52 KB
/
rector.dist.php
File metadata and controls
39 lines (36 loc) · 1.52 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
38
39
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Concat\JoinStringConcatRector;
use Rector\CodeQuality\Rector\Foreach_\ForeachItemsAssignToEmptyArrayToAssignRector;
use Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector;
use Rector\CodingStyle\Rector\FuncCall\ArraySpreadInsteadOfArrayMergeRector;
use Rector\Config\RectorConfig;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\PHPUnit\CodeQuality\Rector\ClassMethod\DataProviderArrayItemsNewLinedRector;
use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
])
->withSkip([
DisallowedEmptyRuleFixerRector::class,
ExplicitBoolCompareRector::class,
JoinStringConcatRector::class,
// todo: buggy?
NullToStrictStringFuncCallArgRector::class,
// @see https://github.com/rectorphp/rector/issues/9587
ForeachItemsAssignToEmptyArrayToAssignRector::class,
])
->withIndent(' ', 4)
->withPhpVersion(PhpVersion::PHP_83)
->withPhpSets(php83: true)
->withPreparedSets(deadCode: true, codeQuality: true, earlyReturn: true)
->withComposerBased(symfony: true)
->withAttributesSets(symfony: true)
->withSymfonyContainerPhp(__DIR__ . '/../../var/cache/dev/App_KernelDevDebugContainer.php')
->withRules([
DataProviderArrayItemsNewLinedRector::class,
ArraySpreadInsteadOfArrayMergeRector::class,
])
->withTypeCoverageLevel(0);