-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
277 lines (232 loc) · 12.2 KB
/
phpstan-baseline.neon
File metadata and controls
277 lines (232 loc) · 12.2 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
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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
parameters:
ignoreErrors:
-
message: '#^Strict comparison using \=\=\= between non\-empty\-array and null will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: lib/ApiPlatform/Serializer/InvalidSearchConditionNormalizer.php
-
message: '#^Call to function method_exists\(\) with Symfony\\Component\\OptionsResolver\\OptionsResolver and ''setOptions'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: lib/Core/Extension/Core/Type/BooleanType.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 2
path: lib/Core/Test/FieldTransformationAssertion.php
-
message: '#^Method Rollerworks\\Component\\Search\\Tests\\Extension\\Core\\ChoiceList\\Factory\\DefaultChoiceListFactoryTest\:\:assertScalarListWithCustomValues\(\) is unused\.$#'
identifier: method.unused
count: 1
path: lib/Core/Tests/Extension/Core/ChoiceList/Factory/DefaultChoiceListFactoryTest.php
-
message: '#^Parameter \#1 \$choices of class Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceListView constructor expects array\<Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceGroupView\|Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceView\>, array\<int, null\> given\.$#'
identifier: argument.type
count: 1
path: lib/Core/Tests/Extension/Core/ChoiceList/Factory/PropertyAccessDecoratorTest.php
-
message: '#^Parameter \#1 \$choices of class Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceListView constructor expects array\<Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceGroupView\|Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceView\>, array\<int, string\> given\.$#'
identifier: argument.type
count: 8
path: lib/Core/Tests/Extension/Core/ChoiceList/Factory/PropertyAccessDecoratorTest.php
-
message: '#^Parameter \#2 \$preferredChoices of class Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceListView constructor expects array\<Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceGroupView\|Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceView\>, array\<int, false\> given\.$#'
identifier: argument.type
count: 1
path: lib/Core/Tests/Extension/Core/ChoiceList/Factory/PropertyAccessDecoratorTest.php
-
message: '#^Parameter \#2 \$preferredChoices of class Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceListView constructor expects array\<Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceGroupView\|Rollerworks\\Component\\Search\\Extension\\Core\\ChoiceList\\View\\ChoiceView\>, array\<int, true\> given\.$#'
identifier: argument.type
count: 2
path: lib/Core/Tests/Extension/Core/ChoiceList/Factory/PropertyAccessDecoratorTest.php
-
message: '#^Parameter &\$query @param\-out type of method Rollerworks\\Component\\Search\\Doctrine\\Dbal\\Query\\QueryGenerator\:\:processCompares\(\) expects array\<string\>, array given\.$#'
identifier: paramOut.type
count: 2
path: lib/Doctrine/Dbal/Query/QueryGenerator.php
-
message: '#^Parameter &\$query @param\-out type of method Rollerworks\\Component\\Search\\Doctrine\\Dbal\\Query\\QueryGenerator\:\:processGroups\(\) expects array\<string\>, array given\.$#'
identifier: paramOut.type
count: 1
path: lib/Doctrine/Dbal/Query/QueryGenerator.php
-
message: '#^Parameter &\$query @param\-out type of method Rollerworks\\Component\\Search\\Doctrine\\Dbal\\Query\\QueryGenerator\:\:processPatternMatchers\(\) expects array\<string\>, array given\.$#'
identifier: paramOut.type
count: 2
path: lib/Doctrine/Dbal/Query/QueryGenerator.php
-
message: '#^Parameter &\$query @param\-out type of method Rollerworks\\Component\\Search\\Doctrine\\Dbal\\Query\\QueryGenerator\:\:processRanges\(\) expects array\<string\>, array given\.$#'
identifier: paramOut.type
count: 2
path: lib/Doctrine/Dbal/Query/QueryGenerator.php
-
message: '#^Parameter &\$query @param\-out type of method Rollerworks\\Component\\Search\\Doctrine\\Dbal\\Query\\QueryGenerator\:\:processSingleValues\(\) expects array\<string\>, array given\.$#'
identifier: paramOut.type
count: 2
path: lib/Doctrine/Dbal/Query/QueryGenerator.php
-
message: '#^Instanceof between Doctrine\\DBAL\\ArrayParameterType\|Doctrine\\DBAL\\ParameterType and UnitEnum will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 1
path: lib/Doctrine/Dbal/Test/QueryBuilderAssertion.php
-
message: '#^Result of \|\| is always true\.$#'
identifier: booleanOr.alwaysTrue
count: 1
path: lib/Doctrine/Dbal/Test/QueryBuilderAssertion.php
-
message: '#^Call to an undefined method Doctrine\\DBAL\\Configuration\:\:setSQLLogger\(\)\.$#'
identifier: method.notFound
count: 1
path: lib/Doctrine/Dbal/Tests/DbalExtensions/Connection.php
-
message: '#^Method Doctrine\\DBAL\\Connection\:\:__construct\(\) invoked with 4 parameters, 2\-3 required\.$#'
identifier: arguments.count
count: 1
path: lib/Doctrine/Dbal/Tests/DbalExtensions/Connection.php
-
message: '#^Parameter \$params of method Rollerworks\\Component\\Search\\Doctrine\\Dbal\\Tests\\DbalExtensions\\Connection\:\:__construct\(\) has invalid type Doctrine\\DBAL\\Params\.$#'
identifier: class.notFound
count: 1
path: lib/Doctrine/Dbal/Tests/DbalExtensions/Connection.php
-
message: '#^Access to an undefined property Doctrine\\DBAL\\Connection\:\:\$queryLog\.$#'
identifier: property.notFound
count: 1
path: lib/Doctrine/Dbal/Tests/Functional/FunctionalDbalTestCase.php
-
message: '#^Call to function is_a\(\) with arguments ''Doctrine\\\\DBAL\\\\ParameterType'', ''UnitEnum'' and true will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: lib/Doctrine/Dbal/Tests/Functional/FunctionalDbalTestCase.php
-
message: '#^Invalid array key type Doctrine\\DBAL\\ParameterType\:\:ASCII\.$#'
identifier: array.invalidKey
count: 1
path: lib/Doctrine/Dbal/Tests/Functional/FunctionalDbalTestCase.php
-
message: '#^Invalid array key type Doctrine\\DBAL\\ParameterType\:\:BINARY\.$#'
identifier: array.invalidKey
count: 1
path: lib/Doctrine/Dbal/Tests/Functional/FunctionalDbalTestCase.php
-
message: '#^Invalid array key type Doctrine\\DBAL\\ParameterType\:\:BOOLEAN\.$#'
identifier: array.invalidKey
count: 1
path: lib/Doctrine/Dbal/Tests/Functional/FunctionalDbalTestCase.php
-
message: '#^Invalid array key type Doctrine\\DBAL\\ParameterType\:\:INTEGER\.$#'
identifier: array.invalidKey
count: 1
path: lib/Doctrine/Dbal/Tests/Functional/FunctionalDbalTestCase.php
-
message: '#^Invalid array key type Doctrine\\DBAL\\ParameterType\:\:LARGE_OBJECT\.$#'
identifier: array.invalidKey
count: 1
path: lib/Doctrine/Dbal/Tests/Functional/FunctionalDbalTestCase.php
-
message: '#^Invalid array key type Doctrine\\DBAL\\ParameterType\:\:NULL\.$#'
identifier: array.invalidKey
count: 1
path: lib/Doctrine/Dbal/Tests/Functional/FunctionalDbalTestCase.php
-
message: '#^Invalid array key type Doctrine\\DBAL\\ParameterType\:\:STRING\.$#'
identifier: array.invalidKey
count: 1
path: lib/Doctrine/Dbal/Tests/Functional/FunctionalDbalTestCase.php
-
message: '#^Method Doctrine\\DBAL\\Connection\:\:__construct\(\) invoked with 4 parameters, 2\-3 required\.$#'
identifier: arguments.count
count: 1
path: lib/Doctrine/Dbal/Tests/Mocks/ConnectionMock.php
-
message: '#^Parameter \$params of method Rollerworks\\Component\\Search\\Tests\\Doctrine\\Dbal\\Mocks\\ConnectionMock\:\:__construct\(\) has invalid type Doctrine\\DBAL\\Params\.$#'
identifier: class.notFound
count: 1
path: lib/Doctrine/Dbal/Tests/Mocks/ConnectionMock.php
-
message: '#^Property Rollerworks\\Component\\Search\\Tests\\Doctrine\\Dbal\\Mocks\\ConnectionMock\:\:\$_platform is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: lib/Doctrine/Dbal/Tests/Mocks/ConnectionMock.php
-
message: '#^Call to an undefined method Doctrine\\DBAL\\Connection\:\:getEventManager\(\)\.$#'
identifier: method.notFound
count: 1
path: lib/Doctrine/Dbal/Tests/TestUtil.php
-
message: '#^Call to an undefined method Doctrine\\DBAL\\Connection\:\:getSchemaManager\(\)\.$#'
identifier: method.notFound
count: 1
path: lib/Doctrine/Dbal/Tests/TestUtil.php
-
message: '#^Call to function method_exists\(\) with ''Doctrine\\\\DBAL\\\\Connection'' and ''createSchemaManager'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: lib/Doctrine/Dbal/Tests/TestUtil.php
-
message: '#^Parameter \#1 \$className of method PHPUnit\\Framework\\TestCase\:\:getMockBuilder\(\) expects class\-string\<Doctrine\\Common\\Cache\\Cache\>, string given\.$#'
identifier: argument.type
count: 1
path: lib/Doctrine/Orm/Tests/CachedDqlConditionGeneratorTest.php
-
message: '#^Property Rollerworks\\Component\\Search\\Tests\\Doctrine\\Orm\\CachedDqlConditionGeneratorTest\:\:\$cacheDriver \(PHPUnit\\Framework\\MockObject\\MockObject&Psr\\SimpleCache\\CacheInterface\) does not accept Doctrine\\Common\\Cache\\Cache&PHPUnit\\Framework\\MockObject\\MockObject\.$#'
identifier: assign.propertyType
count: 1
path: lib/Doctrine/Orm/Tests/CachedDqlConditionGeneratorTest.php
-
message: '#^Offset ''0'' does not exist on array\<string, Rollerworks\\Component\\Search\\Doctrine\\Orm\\OrmQueryField\>\.$#'
identifier: offsetAccess.notFound
count: 2
path: lib/Doctrine/Orm/Tests/FieldConfigBuilderTest.php
-
message: '#^Call to function method_exists\(\) with Doctrine\\ORM\\Configuration and ''enableNativeLazyObj…'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: lib/Doctrine/Orm/Tests/OrmTestCase.php
-
message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:updateSchema\(\) invoked with 2 parameters, 1 required\.$#'
identifier: arguments.count
count: 1
path: lib/Doctrine/Orm/Tests/OrmTestCase.php
-
message: '#^Parameter &\$mappings @param\-out type of method Rollerworks\\Component\\Search\\Elasticsearch\\QueryConditionGenerator\:\:getGroupMappings\(\) expects array\<string, Rollerworks\\Component\\Search\\Elasticsearch\\FieldMapping\>, array given\.$#'
identifier: paramOut.type
count: 5
path: lib/Elasticsearch/QueryConditionGenerator.php
-
message: '#^Variable \$nestedBool might not be defined\.$#'
identifier: variable.undefined
count: 2
path: lib/Elasticsearch/QueryConditionGenerator.php
-
message: '#^PHPDoc tag @var with type Psr\\SimpleCache\\CacheInterface is not subtype of native type PHPUnit\\Framework\\MockObject\\MockObject\.$#'
identifier: varTag.nativeType
count: 1
path: lib/Elasticsearch/Tests/ElasticsearchFactoryTest.php
-
message: '#^Parameter \#1 \$index of method Elastica\\Search\:\:addIndex\(\) expects Elastica\\Index, string\|null given\.$#'
identifier: argument.type
count: 1
path: lib/Elasticsearch/Tests/Functional/FunctionalElasticsearchTestCase.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 1
path: lib/Elasticsearch/Tests/QueryConditionGeneratorTest.php
-
message: '#^Method Doctrine\\ORM\\Tools\\SchemaTool\:\:updateSchema\(\) invoked with 2 parameters, 1 required\.$#'
identifier: arguments.count
count: 1
path: lib/Symfony/SearchBundle/Tests/Functional/ApiPlatformTest.php
-
message: '#^Property Rollerworks\\Component\\Search\\Extension\\Symfony\\Validator\\InputValidator\:\:\$errorList is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: lib/Symfony/Validator/InputValidator.php
-
message: '#^Parameter \$min of class Symfony\\Component\\Validator\\Constraints\\Range constructor expects float\|int\|non\-empty\-string\|null, DateTimeImmutable given\.$#'
identifier: argument.type
count: 1
path: lib/Symfony/Validator/Tests/InputValidatorTest.php