|
2 | 2 |
|
3 | 3 | declare(strict_types=1); |
4 | 4 |
|
5 | | -use Rector\CodeQuality\Rector\Array_\CallableThisArrayToAnonymousFunctionRector; |
6 | 5 | use Rector\CodeQuality\Rector\ClassMethod\LocallyCalledStaticMethodToNonStaticRector; |
7 | 6 | use Rector\CodeQuality\Rector\Identical\FlipTypeControlToUseExclusiveTypeRector; |
8 | 7 | use Rector\CodeQuality\Rector\If_\ExplicitBoolCompareRector; |
9 | 8 | use Rector\Config\RectorConfig; |
10 | | -use Rector\Php81\Rector\ClassMethod\NewInInitializerRector; |
11 | | -use Rector\Php81\Rector\Property\ReadOnlyPropertyRector; |
| 9 | +use Rector\Php82\Rector\Class_\ReadOnlyClassRector; |
12 | 10 | use Rector\PHPUnit\Set\PHPUnitSetList; |
13 | 11 | use Rector\Strict\Rector\Empty_\DisallowedEmptyRuleFixerRector; |
14 | 12 | use Rector\ValueObject\PhpVersion; |
15 | 13 | use Rector\Set\ValueObject\SetList; |
16 | 14 |
|
17 | 15 | return static function (RectorConfig $rectorConfig): void { |
18 | | - $rectorConfig->phpVersion(PhpVersion::PHP_81); |
| 16 | + $rectorConfig->phpVersion(PhpVersion::PHP_82); |
19 | 17 |
|
20 | 18 | $rectorConfig->paths([ |
21 | 19 | __DIR__ . '/src', |
22 | 20 | __DIR__ . '/tests', |
23 | 21 | ]); |
24 | 22 |
|
25 | 23 | $rectorConfig->sets([ |
26 | | - SetList::PHP_81, |
| 24 | + SetList::PHP_82, |
27 | 25 | SetList::CODE_QUALITY, |
28 | 26 | PHPUnitSetList::PHPUNIT_100, |
29 | 27 | ]); |
30 | 28 | $rectorConfig->skip([ |
31 | 29 | FlipTypeControlToUseExclusiveTypeRector::class, |
32 | | - NewInInitializerRector::class => [ |
33 | | - __DIR__ . '/src/SDK/Trace/Sampler/ParentBased.php', |
34 | | - ], |
35 | | - ReadOnlyPropertyRector::class => [ |
36 | | - __DIR__ . '/src/SDK/Metrics/Stream/SynchronousMetricStream.php', |
37 | | - __DIR__ . '/tests/Unit/Extension/Propagator', |
38 | | - ], |
39 | 30 | DisallowedEmptyRuleFixerRector::class, |
40 | 31 | ExplicitBoolCompareRector::class, |
41 | 32 | LocallyCalledStaticMethodToNonStaticRector::class, |
| 33 | + ReadOnlyClassRector::class, |
42 | 34 | ]); |
43 | 35 | }; |
0 commit comments