-
Notifications
You must be signed in to change notification settings - Fork 102
/
Copy pathphpstan-baseline.neon
241 lines (210 loc) · 9.25 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
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
parameters:
ignoreErrors:
-
message: '#^Call to internal method Doctrine\\DBAL\\Connection\:\:getParams\(\) from outside its root namespace Doctrine\.$#'
identifier: method.internal
count: 2
path: src/Doctrine/Driver/DriverDetector.php
-
message: '''
#^Access to constant on deprecated class Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver\:
This class will be removed in 3\.0 without replacement\.$#
'''
identifier: classConstant.deprecatedClass
count: 1
path: src/Doctrine/Mapping/ClassMetadataFactory.php
-
message: '''
#^Instantiation of deprecated class Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver\:
This class will be removed in 3\.0 without replacement\.$#
'''
identifier: new.deprecatedClass
count: 1
path: src/Doctrine/Mapping/ClassMetadataFactory.php
-
message: '#^Calling PHPStan\\Type\\TypehintHelper\:\:decideType\(\) is not covered by backward compatibility promise\. The method might change in a minor PHPStan version\.$#'
identifier: phpstanApi.method
count: 1
path: src/Rules/Doctrine/ORM/EntityColumnRule.php
-
message: '#^Calling PHPStan\\Type\\TypehintHelper\:\:decideType\(\) is not covered by backward compatibility promise\. The method might change in a minor PHPStan version\.$#'
identifier: phpstanApi.method
count: 1
path: src/Rules/Doctrine/ORM/EntityRelationRule.php
-
message: '#^PHPDoc tag @var with type class\-string is not subtype of native type ''Doctrine\\\\Bundle…''\.$#'
identifier: varTag.nativeType
count: 1
path: src/Stubs/Doctrine/StubFilesExtensionLoader.php
-
message: '''
#^Catching deprecated class Doctrine\\Common\\CommonException\:
The doctrine/common package is deprecated, please use specific packages and their exceptions instead\.$#
'''
identifier: catch.deprecatedClass
count: 1
path: src/Type/Doctrine/CreateQueryDynamicReturnTypeExtension.php
-
message: '''
#^Catching deprecated class Doctrine\\ORM\\ORMException\:
Use Doctrine\\ORM\\Exception\\ORMException for catch and instanceof$#
'''
identifier: catch.deprecatedClass
count: 1
path: src/Type/Doctrine/CreateQueryDynamicReturnTypeExtension.php
-
message: '''
#^Access to constant on deprecated class Doctrine\\DBAL\\Types\\ArrayType\:
Use \{@link JsonType\} instead\.$#
'''
identifier: classConstant.deprecatedClass
count: 1
path: src/Type/Doctrine/Descriptors/ArrayType.php
-
message: '''
#^Access to constant on deprecated class Doctrine\\DBAL\\Types\\ObjectType\:
Use \{@link JsonType\} instead\.$#
'''
identifier: classConstant.deprecatedClass
count: 1
path: src/Type/Doctrine/Descriptors/ObjectType.php
-
message: '#^Parameter \$condExpr of method PHPStan\\Type\\Doctrine\\Query\\QueryResultTypeWalker\:\:walkConditionalExpression\(\) has typehint with internal interface Doctrine\\ORM\\Query\\AST\\Phase2OptimizableConditional\.$#'
identifier: parameter.internalInterface
count: 1
path: src/Type/Doctrine/Query/QueryResultTypeWalker.php
-
message: '#^Parameter \$condExpr of method PHPStan\\Type\\Doctrine\\Query\\QueryResultTypeWalker\:\:walkJoinAssociationDeclaration\(\) has typehint with internal interface Doctrine\\ORM\\Query\\AST\\Phase2OptimizableConditional\.$#'
identifier: parameter.internalInterface
count: 1
path: src/Type/Doctrine/Query/QueryResultTypeWalker.php
-
message: '''
#^Catching deprecated class Doctrine\\Common\\CommonException\:
The doctrine/common package is deprecated, please use specific packages and their exceptions instead\.$#
'''
identifier: catch.deprecatedClass
count: 1
path: src/Type/Doctrine/QueryBuilder/QueryBuilderGetQueryDynamicReturnTypeExtension.php
-
message: '''
#^Catching deprecated class Doctrine\\ORM\\ORMException\:
Use Doctrine\\ORM\\Exception\\ORMException for catch and instanceof$#
'''
identifier: catch.deprecatedClass
count: 1
path: src/Type/Doctrine/QueryBuilder/QueryBuilderGetQueryDynamicReturnTypeExtension.php
-
message: '#^Accessing PHPStan\\Rules\\Classes\\InstantiationRule\:\:class is not covered by backward compatibility promise\. The class might change in a minor PHPStan version\.$#'
identifier: phpstanApi.classConstant
count: 1
path: tests/Classes/DoctrineProxyForbiddenClassNamesExtensionTest.php
-
message: '''
#^Instantiation of deprecated class Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver\:
This class will be removed in 3\.0 without replacement\.$#
'''
identifier: new.deprecatedClass
count: 1
path: tests/Classes/entity-manager.php
-
message: '''
#^Instantiation of deprecated class Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver\:
This class will be removed in 3\.0 without replacement\.$#
'''
identifier: new.deprecatedClass
count: 1
path: tests/DoctrineIntegration/ORM/entity-manager.php
-
message: '#^Call to internal method PHPUnit\\Framework\\TestCase\:\:dataName\(\) from outside its root namespace PHPUnit\.$#'
identifier: method.internal
count: 14
path: tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php
-
message: '''
#^Instantiation of deprecated class Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver\:
This class will be removed in 3\.0 without replacement\.$#
'''
identifier: new.deprecatedClass
count: 1
path: tests/Platform/QueryResultTypeWalkerFetchTypeMatrixTest.php
-
message: '#^Accessing PHPStan\\Rules\\DeadCode\\UnusedPrivatePropertyRule\:\:class is not covered by backward compatibility promise\. The class might change in a minor PHPStan version\.$#'
identifier: phpstanApi.classConstant
count: 1
path: tests/Rules/DeadCode/UnusedPrivatePropertyRuleTest.php
-
message: '''
#^Instantiation of deprecated class Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver\:
This class will be removed in 3\.0 without replacement\.$#
'''
identifier: new.deprecatedClass
count: 1
path: tests/Rules/DeadCode/entity-manager.php
-
message: '''
#^Access to constant on deprecated class Doctrine\\DBAL\\Types\\ArrayType\:
Use \{@link JsonType\} instead\.$#
'''
identifier: classConstant.deprecatedClass
count: 1
path: tests/Rules/Doctrine/ORM/EntityColumnRuleTest.php
-
message: '#^Accessing PHPStan\\Rules\\Methods\\CallMethodsRule\:\:class is not covered by backward compatibility promise\. The class might change in a minor PHPStan version\.$#'
identifier: phpstanApi.classConstant
count: 1
path: tests/Rules/Doctrine/ORM/MagicRepositoryMethodCallRuleTest.php
-
message: '#^Accessing PHPStan\\Rules\\Exceptions\\CatchWithUnthrownExceptionRule\:\:class is not covered by backward compatibility promise\. The class might change in a minor PHPStan version\.$#'
identifier: phpstanApi.classConstant
count: 1
path: tests/Rules/Exceptions/CatchWithUnthrownExceptionRuleTest.php
-
message: '#^Accessing PHPStan\\Rules\\Exceptions\\TooWideMethodThrowTypeRule\:\:class is not covered by backward compatibility promise\. The class might change in a minor PHPStan version\.$#'
identifier: phpstanApi.classConstant
count: 1
path: tests/Rules/Exceptions/TooWideMethodThrowTypeRuleTest.php
-
message: '#^Accessing PHPStan\\Rules\\DeadCode\\UnusedPrivatePropertyRule\:\:class is not covered by backward compatibility promise\. The class might change in a minor PHPStan version\.$#'
identifier: phpstanApi.classConstant
count: 1
path: tests/Rules/Properties/MissingGedmoByPhpDocPropertyAssignRuleTest.php
-
message: '#^Accessing PHPStan\\Rules\\DeadCode\\UnusedPrivatePropertyRule\:\:class is not covered by backward compatibility promise\. The class might change in a minor PHPStan version\.$#'
identifier: phpstanApi.classConstant
count: 1
path: tests/Rules/Properties/MissingGedmoPropertyAssignRuleTest.php
-
message: '#^Accessing PHPStan\\Rules\\Properties\\MissingReadOnlyByPhpDocPropertyAssignRule\:\:class is not covered by backward compatibility promise\. The class might change in a minor PHPStan version\.$#'
identifier: phpstanApi.classConstant
count: 1
path: tests/Rules/Properties/MissingReadOnlyByPhpDocPropertyAssignRuleTest.php
-
message: '#^Accessing PHPStan\\Rules\\Properties\\MissingReadOnlyPropertyAssignRule\:\:class is not covered by backward compatibility promise\. The class might change in a minor PHPStan version\.$#'
identifier: phpstanApi.classConstant
count: 1
path: tests/Rules/Properties/MissingReadOnlyPropertyAssignRuleTest.php
-
message: '''
#^Instantiation of deprecated class Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver\:
This class will be removed in 3\.0 without replacement\.$#
'''
identifier: new.deprecatedClass
count: 1
path: tests/Rules/Properties/entity-manager.php
-
message: '''
#^Instantiation of deprecated class Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver\:
This class will be removed in 3\.0 without replacement\.$#
'''
identifier: new.deprecatedClass
count: 1
path: tests/Type/Doctrine/DBAL/mysqli.php
-
message: '''
#^Instantiation of deprecated class Doctrine\\ORM\\Mapping\\Driver\\AnnotationDriver\:
This class will be removed in 3\.0 without replacement\.$#
'''
identifier: new.deprecatedClass
count: 1
path: tests/Type/Doctrine/DBAL/pdo.php