-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathrector.php
More file actions
21 lines (18 loc) · 913 Bytes
/
rector.php
File metadata and controls
21 lines (18 loc) · 913 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\DeadCode\Rector\Property\RemoveUselessVarTagRector;
use Rector\Php80\Rector\Class_\StringableForToStringRector;
use Rector\Php82\Rector\Encapsed\VariableInStringInterpolationFixerRector;
use Rector\Php84\Rector\Param\ExplicitNullableParamTypeRector;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([__DIR__ . DIRECTORY_SEPARATOR . 'src', __DIR__ . DIRECTORY_SEPARATOR . 'tests'])
->withPhpSets(php81: true)
->withPhpVersion(PhpVersion::PHP_84)
->withPreparedSets(deadCode: true, codeQuality: true)
->withSkip([
RemoveUselessVarTagRector::class => [__DIR__ . '/src/PHPIcons.php'],
StringableForToStringRector::class => [__DIR__ . '/src/PHPIcons.php'],
])
->withRules([ExplicitNullableParamTypeRector::class, VariableInStringInterpolationFixerRector::class]);