forked from propelorm/Propel
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathrector.php
More file actions
37 lines (32 loc) · 1.4 KB
/
rector.php
File metadata and controls
37 lines (32 loc) · 1.4 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
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\ClassMethod\OptionalParametersAfterRequiredRector;
use Rector\Config\RectorConfig;
use Rector\Php73\Rector\FuncCall\StringifyStrNeedlesRector;
use Rector\Php81\Rector\FuncCall\NullToStrictStringFuncCallArgRector;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\Symfony\Set\SymfonySetList;
use Rector\Transform\Rector\ClassMethod\ReturnTypeWillChangeRector;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictNativeCallRector;
use Rector\TypeDeclaration\Rector\ClassMethod\ReturnTypeFromStrictScalarReturnExprRector;
return RectorConfig::configure()
->withRules([
ReturnTypeFromStrictNativeCallRector::class,
ReturnTypeFromStrictScalarReturnExprRector::class,
StringifyStrNeedlesRector::class,
NullToStrictStringFuncCallArgRector::class,
// ReturnTypeWillChangeRector::class,
])
->withSkip([
__DIR__ . '/vendor',
__DIR__ . '/test/fixtures/bookstore-packaged/build/',
__DIR__ . '/test/fixtures/bookstore/build/',
__DIR__ . '/test/fixtures/namespaced/build/',
__DIR__ . '/test/fixtures/nestedset/build/',
__DIR__ . '/test/fixtures/schemas/build/',
__DIR__ . '/test/fixtures/treetest/build/',
__DIR__ . '/generator/pear/build/',
__DIR__ . '/runtime/pear/build/',
])
->withPaths([__DIR__]);