forked from litesaml/lightsaml
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
36 lines (34 loc) · 1.34 KB
/
rector.php
File metadata and controls
36 lines (34 loc) · 1.34 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
<?php
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
use Rector\Php74\Rector\Property\RestoreDefaultNullToNullableTypePropertyRector;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\PHPUnit\PHPUnit100\Rector\Class_\StaticDataProviderClassMethodRector;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Set\ValueObject\LevelSetList;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictNativeCallRector;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests'
])
->withRules([
TypedPropertyFromStrictConstructorRector::class,
InlineConstructorDefaultToPropertyRector::class,
ReturnTypeFromStrictNativeCallRector::class,
StaticDataProviderClassMethodRector::class,
])
->withSets([
PHPUnitSetList::PHPUNIT_100,
LevelSetList::UP_TO_PHP_81,
])
->withPreparedSets(
deadCode: true,
codeQuality: true,
)->withSkip([
RestoreDefaultNullToNullableTypePropertyRector::class,
NullToStrictStringFuncCallArgRector::class,
ClosureToArrowFunctionRector::class,
]);