-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
29 lines (26 loc) · 1.44 KB
/
rector.php
File metadata and controls
29 lines (26 loc) · 1.44 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
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([__DIR__ . '/src'])
->withBootstrapFiles([__DIR__ . '/src/Aegis/phpstan-bootstrap.php'])
->withPhpSets(php84: true)
->withSkip([
__DIR__ . '/vendor',
'*/vendor/*',
'*/node_modules/*',
\Rector\CodingStyle\Rector\ArrowFunction\ArrowFunctionDelegatingCallToFirstClassCallableRector::class,
\Rector\CodingStyle\Rector\FuncCall\ClosureFromCallableToFirstClassCallableRector::class,
\Rector\CodingStyle\Rector\FuncCall\FunctionFirstClassCallableRector::class,
\Rector\Php55\Rector\String_\StringClassNameToClassConstantRector::class,
\Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector::class,
\Rector\Php71\Rector\TryCatch\MultiExceptionCatchRector::class,
\Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector::class,
\Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector::class,
\Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector::class,
\Rector\Php81\Rector\Property\ReadOnlyPropertyRector::class,
\Rector\Php82\Rector\Class_\ReadOnlyClassRector::class,
\Rector\Php84\Rector\Foreach_\ForeachToArrayAllRector::class,
\Rector\Php84\Rector\Foreach_\ForeachToArrayAnyRector::class,
\Rector\Php84\Rector\MethodCall\NewMethodCallWithoutParenthesesRector::class,
]);