-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathrector.php
More file actions
32 lines (31 loc) · 949 Bytes
/
rector.php
File metadata and controls
32 lines (31 loc) · 949 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
29
30
31
32
<?php
use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\Property\TypedPropertyFromStrictConstructorRector;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Php81\Rector\Property\ReadOnlyPropertyRector;
return RectorConfig::configure()
->withPaths([ __DIR__ . '/' ])
->withSkip([
__DIR__ . '/.github',
__DIR__ . '/vendor',
__DIR__ . '/docs',
'rector.php',
'.gitignore',
'.git',
'CHANGELOG.md',
'composer.json',
'composer.lock',
'phpunit.xml',
'README.md',
'CONTRIBUTING.md',
'dev.yml',
'LICENSE',
'RELEASING.md',
'run_test_resource_test.sh',
'composer-require-checker.json'
])
->withRules([
ReadOnlyPropertyRector::class,
TypedPropertyFromStrictConstructorRector::class,
NullToStrictStringFuncCallArgRector::class
]);