-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrector.php
More file actions
39 lines (35 loc) · 1 KB
/
Copy pathrector.php
File metadata and controls
39 lines (35 loc) · 1 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
<?php
declare(strict_types=1);
/*
* This file is part of Contao.
*
* (c) Leo Feyer
*
* @license LGPL-3.0-or-later
*/
use Contao\Rector\Set\SetList;
use Rector\Config\RectorConfig;
use Rector\Php80\Rector\Class_\ClassPropertyAssignToConstructorPromotionRector;
use Rector\Php82\Rector\Class_\ReadOnlyClassRector;
use Rector\ValueObject\PhpVersion;
return RectorConfig::configure()
->withPhpVersion(PhpVersion::PHP_82)
->withPhpSets(php82: true)
->withSets([SetList::CONTAO])
->withPaths([
__DIR__.'/e2e-testing/bin',
__DIR__.'/e2e-testing/src',
__DIR__.'/e2e-testing/tests',
__DIR__.'/installation-recipe/src',
__DIR__.'/installation-recipe/tests',
])
->withSkip([
ClassPropertyAssignToConstructorPromotionRector::class => [
'e2e-testing/src/InstallationLease.php',
],
ReadOnlyClassRector::class,
])
->withRootFiles()
->withParallel()
->withCache(sys_get_temp_dir().'/rector/contao-setup-and-testing')
;