forked from rectorphp/rector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsymfony42.yaml
123 lines (108 loc) · 5.25 KB
/
symfony42.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
services:
# https://github.com/symfony/symfony/pull/28447
Rector\Core\Rector\New_\NewToStaticCallRector:
$typeToStaticCalls:
'Symfony\Component\HttpFoundation\Cookie': ['Symfony\Component\HttpFoundation\Cookie', 'create']
Rector\Renaming\Rector\Class_\RenameClassRector:
$oldToNewClasses:
# https://github.com/symfony/symfony/commit/a7e319d9e1316e2e18843f8ce15b67a8693e5bf9
'Symfony\Bundle\FrameworkBundle\Controller\Controller': 'Symfony\Bundle\FrameworkBundle\Controller\AbstractController'
# https://github.com/symfony/symfony/commit/744bf0e7ac3ecf240d0bf055cc58f881bb0b3ec0
'Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand': 'Symfony\Component\Console\Command\Command'
'Symfony\Component\Translation\TranslatorInterface': 'Symfony\Contracts\Translation\TranslatorInterface'
# related to "Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand" deprecation, see https://github.com/rectorphp/rector/issues/1629
Rector\Symfony\Rector\FrameworkBundle\ContainerGetToConstructorInjectionRector: null
# https://symfony.com/blog/new-in-symfony-4-2-important-deprecations
Rector\Symfony\Rector\New_\StringToArrayArgumentProcessRector: null
Rector\Symfony\Rector\New_\RootNodeTreeBuilderRector: null
Rector\Core\Rector\Argument\ArgumentAdderRector:
$positionWithDefaultValueByMethodNamesByClassTypes:
# https://github.com/symfony/symfony/commit/fa2063efe43109aea093d6fbfc12d675dba82146
# https://github.com/symfony/symfony/commit/e3aa90f852f69040be19da3d8729cdf02d238ec7
'Symfony\Component\BrowserKit\Client':
submit:
2:
name: 'serverParameters'
default_value: []
scope: ['method_call']
# https://github.com/symfony/symfony/commit/f634afdb6f573e4af8d89aaa605e0c7d4058676d
'Symfony\Component\DomCrawler\Crawler':
children:
0:
# $selector
default_value: null
scope: ['method_call']
'Symfony\Component\Finder\Finder':
sortByName:
0:
# $useNaturalSort
default_value: false
scope: ['method_call']
'Symfony\Bridge\Monolog\Processor\DebugProcessor':
getLogs:
0:
# $request
default_value: null
scope: ['method_call']
countErrors:
0:
# $request
default_value: null
scope: ['method_call']
'Symfony\Bridge\Monolog\Logger':
getLogs:
0:
# $request
default_value: null
scope: ['method_call']
countErrors:
0:
# $request
default_value: null
scope: ['method_call']
'Symfony\Component\Serializer\Normalizer':
handleCircularReference:
1:
# $format
default_value: null
scope: ['method_call']
2:
# $context
default_value: []
scope: ['method_call']
Rector\Renaming\Rector\MethodCall\RenameMethodRector:
$oldToNewMethodsByClass:
'Symfony\Component\Cache\CacheItem':
getPreviousTags: 'getMetadata'
'Symfony\Component\Form\AbstractTypeExtension':
getExtendedType: 'getExtendedTypes'
Rector\Core\Rector\ClassMethod\AddReturnTypeDeclarationRector:
$typehintForMethodByClass:
'Symfony\Component\Form\AbstractTypeExtension':
getExtendedTypes: 'iterable'
Rector\Core\Rector\Visibility\ChangeMethodVisibilityRector:
$methodToVisibilityByClass:
'Symfony\Component\Form\AbstractTypeExtension':
getExtendedTypes: 'static'
Rector\Core\Rector\ClassMethod\WrapReturnRector:
$typeToMethodToWrap:
'Symfony\Component\Form\AbstractTypeExtension':
getExtendedTypes: 'array'
Rector\Core\Rector\Argument\ArgumentDefaultValueReplacerRector:
$replacesByMethodAndTypes:
# https://github.com/symfony/symfony/commit/9493cfd5f2366dab19bbdde0d0291d0575454567
'Symfony\Component\HttpFoundation\Cookie':
__construct:
5:
before: false
after: null
8:
before: null
after: 'lax'
Rector\Core\Rector\Argument\ArgumentRemoverRector:
$positionsByMethodNameByClassType:
# https://github.com/symfony/symfony/commit/f5c355e1ba399a1b3512367647d902148bdaf09f
'Symfony\Component\HttpKernel\DataCollector\ConfigDataCollector':
__construct:
0: null
1: null