-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathrector-php82.php
More file actions
28 lines (24 loc) · 906 Bytes
/
Copy pathrector-php82.php
File metadata and controls
28 lines (24 loc) · 906 Bytes
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
<?php
declare(strict_types=1);
// CI-only Rector config: dry-run the PHP 8.2 rule set to surface 8.2-level changes the core
// migration (rector.php, PHP_81) didn't target — chiefly dynamic-property classes (8.2 deprecation
// → #[\AllowDynamicProperties] / declared props). Advisory only; we review the diff and apply in
// batches. The runtime config is rector.php (PHP_81); this one is for the hardening sweep.
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\SetList;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/include',
__DIR__ . '/modules',
])
->withSkip([
__DIR__ . '/modules/Libs',
__DIR__ . '/vendor',
__DIR__ . '/modules/Base/Theme/smarty',
__DIR__ . '/modules/Tests',
])
->withPhpVersion(PhpVersion::PHP_82)
->withSets([
SetList::PHP_82,
]);