-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
40 lines (37 loc) · 1.25 KB
/
rector.php
File metadata and controls
40 lines (37 loc) · 1.25 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
40
<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php81\Rector\ClassMethod\NewInInitializerRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
use Rector\Php82\Rector\Class_\ReadOnlyClassRector;
use Rector\Php83\Rector\ClassConst\AddTypeToConstRector;
use Rector\PHPUnit\Set\PHPUnitSetList as PHPUnitSetList;
use Rector\Set\ValueObject\SetList;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/Block',
__DIR__ . '/Controller',
__DIR__ . '/Model',
__DIR__ . '/Ui',
__DIR__ . '/view',
])
->withPhpVersion(PhpVersion::PHP_84)
->withSets([
SetList::PHP_80,
SetList::PHP_81,
SetList::PHP_82,
SetList::PHP_83,
SetList::PHP_84,
PHPUnitSetList::PHPUNIT_100
])
->withPHPStanConfigs(phpstanConfigs: [__DIR__ . '/phpstan.neon'])
->withSkip([
// Skip specific rules if needed
ReadOnlyPropertyRector::class,
ReadOnlyClassRector::class,
AddTypeToConstRector::class,
ClassPropertyAssignToConstructorPromotionRector::class,
NewInInitializerRector::class
]);