forked from craftcms/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrector.php
More file actions
28 lines (23 loc) · 840 Bytes
/
rector.php
File metadata and controls
28 lines (23 loc) · 840 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);
use Rector\Config\RectorConfig;
use Rector\Php71\Rector\FuncCall\RemoveExtraParametersRector;
use Rector\Php74\Rector\Closure\ClosureToArrowFunctionRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/lib',
__DIR__ . '/src',
__DIR__ . '/tests/functional',
__DIR__ . '/tests/unit',
])
->withSkip([
__DIR__ . '/src/icons/index.php',
// somehow craft\web AssetManager refer with Yii parent AssetManager class
// autoload may need to be bootstrapped to early load some child classes
RemoveExtraParametersRector::class,
// macro usage, make phpstan notice
ClosureToArrowFunctionRector::class => [
__DIR__ . '/src/base/ApplicationTrait.php',
],
])
->withPhpSets(php74: true);