forked from rectorphp/rector-src
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathphpstan-baseline.neon
219 lines (186 loc) · 9.61 KB
/
phpstan-baseline.neon
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
parameters:
ignoreErrors:
-
message: """
#^Call to deprecated method resolve\\(\\) of class Rector\\\\PhpDocParser\\\\NodeValue\\\\NodeValueResolver\\:
Use Scope\\-\\>getType\\(\\) with constant types instead$#
"""
count: 1
path: packages-tests/PhpDocParser/NodeValue/NodeValueResolverTest.php
-
message: """
#^Fetching class constant class of deprecated class Rector\\\\PhpDocParser\\\\NodeValue\\\\NodeValueResolver\\:
Use \\$scope\\-\\>getType\\(\\) instead$#
"""
count: 1
path: packages-tests/PhpDocParser/NodeValue/NodeValueResolverTest.php
-
message: "#^Call to deprecated method markAsChanged\\(\\) of class Rector\\\\BetterPhpDocParser\\\\PhpDocInfo\\\\PhpDocInfo\\.$#"
count: 3
path: packages/BetterPhpDocParser/PhpDocInfo/PhpDocInfo.php
-
message: "#^Call to deprecated method markAsChanged\\(\\) of class Rector\\\\BetterPhpDocParser\\\\PhpDocInfo\\\\PhpDocInfo\\.$#"
count: 4
path: packages/BetterPhpDocParser/PhpDocManipulator/PhpDocTagRemover.php
-
message: "#^Call to deprecated method markAsChanged\\(\\) of class Rector\\\\BetterPhpDocParser\\\\PhpDocInfo\\\\PhpDocInfo\\.$#"
count: 3
path: packages/BetterPhpDocParser/PhpDocManipulator/PhpDocTypeChanger.php
-
message: """
#^Call to deprecated method notifyNodeFileInfo\\(\\) of class Rector\\\\ChangesReporting\\\\Collector\\\\RectorChangeCollector\\:
Use file\\-\\> method instead$#
"""
count: 1
path: packages/NodeRemoval/NodeRemover.php
-
message: """
#^Call to deprecated method getDefaultValue\\(\\) of class PHPStan\\\\BetterReflection\\\\Reflection\\\\Adapter\\\\ReflectionProperty\\:
Use getDefaultValueExpression\\(\\)$#
"""
count: 1
path: packages/NodeTypeResolver/TypeAnalyzer/ArrayTypeAnalyzer.php
-
message: """
#^Call to deprecated method notifyNodeFileInfo\\(\\) of class Rector\\\\ChangesReporting\\\\Collector\\\\RectorChangeCollector\\:
Use file\\-\\> method instead$#
"""
count: 3
path: packages/PostRector/Collector/PropertyToAddCollector.php
-
message: "#^Parameter \\$returnTypeInferer of method Rector\\\\VendorLocker\\\\NodeVendorLocker\\\\ClassMethodReturnTypeOverrideGuard\\:\\:__construct\\(\\) has typehint with deprecated class Rector\\\\TypeDeclaration\\\\TypeInferer\\\\ReturnTypeInferer\\.$#"
count: 1
path: packages/VendorLocker/NodeVendorLocker/ClassMethodReturnTypeOverrideGuard.php
-
message: """
#^Access to deprecated property \\$nodeRemover of class Rector\\\\Core\\\\Rector\\\\AbstractRector\\:
Use service directly or return changes nodes$#
"""
count: 1
path: rules/CodeQuality/Rector/If_/ConsecutiveNullCompareReturnsToNullCoalesceQueueRector.php
-
message: "#^Call to deprecated method markAsChanged\\(\\) of class Rector\\\\BetterPhpDocParser\\\\PhpDocInfo\\\\PhpDocInfo\\.$#"
count: 1
path: rules/DeadCode/PhpDoc/TagRemover/ParamTagRemover.php
-
message: """
#^Access to deprecated property \\$nodeRemover of class Rector\\\\Core\\\\Rector\\\\AbstractRector\\:
Use service directly or return changes nodes$#
"""
count: 1
path: rules/DeadCode/Rector/Array_/RemoveDuplicatedArrayKeyRector.php
-
message: """
#^Access to deprecated property \\$nodeRemover of class Rector\\\\Core\\\\Rector\\\\AbstractRector\\:
Use service directly or return changes nodes$#
"""
count: 1
path: rules/DeadCode/Rector/BinaryOp/RemoveDuplicatedInstanceOfRector.php
-
message: """
#^Access to deprecated property \\$nodeRemover of class Rector\\\\Core\\\\Rector\\\\AbstractRector\\:
Use service directly or return changes nodes$#
"""
count: 1
path: rules/DependencyInjection/Rector/Class_/ActionInjectionToConstructorInjectionRector.php
-
message: "#^Call to deprecated method addNodeAfterNode\\(\\) of class Rector\\\\PostRector\\\\Collector\\\\NodesToAddCollector\\.$#"
count: 6
path: rules/MysqlToMysqli/Rector/Assign/MysqlAssignToMysqliRector.php
-
message: "#^Call to deprecated method addNodeAfterNode\\(\\) of class Rector\\\\PostRector\\\\Collector\\\\NodesToAddCollector\\.$#"
count: 3
path: rules/Php72/Rector/Assign/ListEachRector.php
-
message: """
#^Call to deprecated method addNodesAfterNode\\(\\) of class Rector\\\\PostRector\\\\Collector\\\\NodesToAddCollector\\:
Return created nodes right in refactor\\(\\) method to keep context instead\\.$#
"""
count: 1
path: rules/Php72/Rector/Assign/ReplaceEachAssignmentWithKeyCurrentRector.php
-
message: """
#^Call to deprecated method addNodeBeforeNode\\(\\) of class Rector\\\\PostRector\\\\Collector\\\\NodesToAddCollector\\:
Return created nodes right in refactor\\(\\) method to keep context instead\\.$#
"""
count: 1
path: rules/Php74/Rector/FuncCall/MoneyFormatToNumberFormatRector.php
-
message: "#^Call to deprecated method markAsChanged\\(\\) of class Rector\\\\BetterPhpDocParser\\\\PhpDocInfo\\\\PhpDocInfo\\.$#"
count: 1
path: rules/Php80/Rector/Class_/AnnotationToAttributeRector.php
-
message: "#^Call to deprecated method markAsChanged\\(\\) of class Rector\\\\BetterPhpDocParser\\\\PhpDocInfo\\\\PhpDocInfo\\.$#"
count: 1
path: rules/Php80/Rector/Class_/ClassPropertyAssignToConstructorPromotionRector.php
-
message: "#^Parameter \\$returnTypeInferer of method Rector\\\\Php80\\\\Rector\\\\Class_\\\\StringableForToStringRector\\:\\:__construct\\(\\) has typehint with deprecated class Rector\\\\TypeDeclaration\\\\TypeInferer\\\\ReturnTypeInferer\\.$#"
count: 1
path: rules/Php80/Rector/Class_/StringableForToStringRector.php
-
message: "#^Call to deprecated method addNodeAfterNode\\(\\) of class Rector\\\\PostRector\\\\Collector\\\\NodesToAddCollector\\.$#"
count: 1
path: rules/Php80/Rector/FuncCall/TokenGetAllToObjectRector.php
-
message: """
#^Call to deprecated method getConstants\\(\\) of class PHPStan\\\\BetterReflection\\\\Reflection\\\\Adapter\\\\ReflectionClass\\:
Use getReflectionConstants\\(\\)$#
"""
count: 1
path: rules/Privatization/Reflection/ClassConstantsResolver.php
-
message: """
#^Access to deprecated property \\$nodeRemover of class Rector\\\\Core\\\\Rector\\\\AbstractRector\\:
Use service directly or return changes nodes$#
"""
count: 5
path: rules/Removing/Rector/ClassMethod/ArgumentRemoverRector.php
-
message: """
#^Access to deprecated property \\$nodeRemover of class Rector\\\\Core\\\\Rector\\\\AbstractRector\\:
Use service directly or return changes nodes$#
"""
count: 3
path: rules/Transform/Rector/Class_/ChangeSingletonToServiceRector.php
-
message: "#^Parameter \\$returnTypeInferer of method Rector\\\\TypeDeclaration\\\\Rector\\\\ClassMethod\\\\ReturnTypeFromReturnDirectArrayRector\\:\\:__construct\\(\\) has typehint with deprecated class Rector\\\\TypeDeclaration\\\\TypeInferer\\\\ReturnTypeInferer\\.$#"
count: 1
path: rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromReturnDirectArrayRector.php
-
message: "#^Parameter \\$returnTypeInferer of method Rector\\\\TypeDeclaration\\\\Rector\\\\ClassMethod\\\\ReturnTypeFromStrictTypedCallRector\\:\\:__construct\\(\\) has typehint with deprecated class Rector\\\\TypeDeclaration\\\\TypeInferer\\\\ReturnTypeInferer\\.$#"
count: 1
path: rules/TypeDeclaration/Rector/ClassMethod/ReturnTypeFromStrictTypedCallRector.php
-
message: "#^Parameter \\$returnTypeInferer of method Rector\\\\TypeDeclaration\\\\Rector\\\\Closure\\\\AddClosureReturnTypeRector\\:\\:__construct\\(\\) has typehint with deprecated class Rector\\\\TypeDeclaration\\\\TypeInferer\\\\ReturnTypeInferer\\.$#"
count: 1
path: rules/TypeDeclaration/Rector/Closure/AddClosureReturnTypeRector.php
-
message: "#^Parameter \\$trustedClassMethodPropertyTypeInferer of method Rector\\\\TypeDeclaration\\\\Rector\\\\Property\\\\TypedPropertyFromStrictConstructorRector\\:\\:__construct\\(\\) has typehint with deprecated class Rector\\\\TypeDeclaration\\\\TypeInferer\\\\PropertyTypeInferer\\\\TrustedClassMethodPropertyTypeInferer\\.$#"
count: 1
path: rules/TypeDeclaration/Rector/Property/TypedPropertyFromStrictConstructorRector.php
-
message: "#^Parameter \\$trustedClassMethodPropertyTypeInferer of method Rector\\\\TypeDeclaration\\\\Rector\\\\Property\\\\TypedPropertyFromStrictSetUpRector\\:\\:__construct\\(\\) has typehint with deprecated class Rector\\\\TypeDeclaration\\\\TypeInferer\\\\PropertyTypeInferer\\\\TrustedClassMethodPropertyTypeInferer\\.$#"
count: 1
path: rules/TypeDeclaration/Rector/Property/TypedPropertyFromStrictSetUpRector.php
-
message: "#^Parameter \\$assignToPropertyTypeInferer of method Rector\\\\TypeDeclaration\\\\TypeInferer\\\\PropertyTypeInferer\\\\AllAssignNodePropertyTypeInferer\\:\\:__construct\\(\\) has typehint with deprecated class Rector\\\\TypeDeclaration\\\\TypeInferer\\\\AssignToPropertyTypeInferer\\.$#"
count: 1
path: rules/TypeDeclaration/TypeInferer/PropertyTypeInferer/AllAssignNodePropertyTypeInferer.php
-
message: """
#^Call to deprecated method notifyNodeFileInfo\\(\\) of class Rector\\\\ChangesReporting\\\\Collector\\\\RectorChangeCollector\\:
Use file\\-\\> method instead$#
"""
count: 1
path: src/NodeManipulator/ArrayManipulator.php
-
message: """
#^Access to deprecated property \\$nodeRemover of class Rector\\\\Core\\\\Rector\\\\AbstractRector\\:
Use service directly or return changes nodes$#
"""
count: 2
path: src/Rector/AbstractRector.php
-
message: "#^Function \"class_exists\\(\\)\" cannot be used/left in the code\\: use ReflectionProvider\\-\\>has\\*\\(\\) instead$#"
count: 1
path: src/StaticReflection/SourceLocator/RenamedClassesSourceLocator.php