-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
311 lines (250 loc) · 13 KB
/
phpstan-baseline.neon
File metadata and controls
311 lines (250 loc) · 13 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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
parameters:
ignoreErrors:
-
message: "#^Call to static method getMain\\(\\) on an unknown class RequestContext\\.$#"
count: 1
path: src/NeoWikiExtension.php
-
message: "#^Parameter \\#1 \\$titleParser of class ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\PageContentFetcher constructor expects TitleParser, MediaWiki\\\\Title\\\\TitleParser given\\.$#"
count: 1
path: src/NeoWikiExtension.php
-
message: "#^Cannot access property \\$page_title on array\\|stdClass\\|false\\.$#"
count: 1
path: src/Persistence/MediaWiki/DatabaseSchemaNameLookup.php
-
message: "#^Instantiated class TitleValue not found\\.$#"
count: 2
path: src/Persistence/MediaWiki/DatabaseSchemaNameLookup.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\DatabaseSchemaNameLookup\\:\\:dbResultToTitleValueArray\\(\\) has invalid return type TitleValue\\.$#"
count: 1
path: src/Persistence/MediaWiki/DatabaseSchemaNameLookup.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\DatabaseSchemaNameLookup\\:\\:getFirstSchemaNames\\(\\) has invalid return type TitleValue\\.$#"
count: 1
path: src/Persistence/MediaWiki/DatabaseSchemaNameLookup.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\DatabaseSchemaNameLookup\\:\\:getSchemaNamesMatching\\(\\) has invalid return type TitleValue\\.$#"
count: 1
path: src/Persistence/MediaWiki/DatabaseSchemaNameLookup.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\DatabaseSchemaNameLookup\\:\\:searchSuggestionsToTitleArray\\(\\) has invalid return type TitleValue\\.$#"
count: 1
path: src/Persistence/MediaWiki/DatabaseSchemaNameLookup.php
-
message: "#^Call to method getPrefixedText\\(\\) on an unknown class Title\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Call to method getTitleValue\\(\\) on an unknown class Title\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Call to method parseTitle\\(\\) on an unknown class TitleParser\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Caught class MalformedTitleException not found\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Instantiated class MalformedTitleException not found\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\PageContentFetcher\\:\\:getPageContent\\(\\) has invalid return type Content\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\PageContentFetcher\\:\\:getPageContent\\(\\) should return Content\\|null but returns MediaWiki\\\\Content\\\\Content\\|null\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\PageContentFetcher\\:\\:normalizeTitle\\(\\) has invalid return type TitleValue\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^PHPDoc tag @throws with type MalformedTitleException is not subtype of Throwable$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Parameter \\#1 \\$page of method MediaWiki\\\\Revision\\\\RevisionLookup\\:\\:getRevisionByTitle\\(\\) expects MediaWiki\\\\Linker\\\\LinkTarget\\|MediaWiki\\\\Page\\\\PageIdentity, TitleValue given\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Parameter \\$pageTitle of method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\PageContentFetcher\\:\\:getPageContent\\(\\) has invalid type Title\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Parameter \\$pageTitle of method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\PageContentFetcher\\:\\:normalizeTitle\\(\\) has invalid type Title\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Parameter \\$titleParser of method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\PageContentFetcher\\:\\:__construct\\(\\) has invalid type TitleParser\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Property ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\PageContentFetcher\\:\\:\\$titleParser has unknown class TitleParser as its type\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Throwing object of an unknown class MalformedTitleException\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentFetcher.php
-
message: "#^Expression on left side of \\?\\? is not nullable\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentSaver.php
-
message: "#^Using nullsafe method call on non\\-nullable type MediaWiki\\\\Storage\\\\PageUpdateStatus\\. Use \\-\\> instead\\.$#"
count: 1
path: src/Persistence/MediaWiki/PageContentSaver.php
-
message: "#^Call to static method newUnsavedComment\\(\\) on an unknown class CommentStoreComment\\.$#"
count: 1
path: src/Persistence/MediaWiki/Subject/MediaWikiSubjectRepository.php
-
message: "#^Parameter \\#2 \\$op of method Wikimedia\\\\Rdbms\\\\IReadableDatabase\\:\\:expr\\(\\) expects '\\!\\='\\|'\\='\\|'\\\\\\\\x3C'\\|'\\\\\\\\x3C\\='\\|'\\\\\\\\x3E'\\|'\\\\\\\\x3E\\='\\|'LIKE'\\|'NOT LIKE', '\\<\\=' given\\.$#"
count: 1
path: src/Persistence/MediaWiki/Subject/PointInTimeSubjectLookup.php
-
message: "#^Parameter \\#1 \\$boolean of class ProfessionalWiki\\\\NeoWiki\\\\Domain\\\\Value\\\\BooleanValue constructor expects bool, mixed given\\.$#"
count: 1
path: src/Persistence/MediaWiki/Subject/StatementDeserializer.php
-
message: "#^Parameter \\#1 \\$json of method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\Subject\\\\StatementDeserializer\\:\\:deserializeRelationValue\\(\\) expects array, mixed given\\.$#"
count: 1
path: src/Persistence/MediaWiki/Subject/StatementDeserializer.php
-
message: "#^Parameter \\#1 \\$number of class ProfessionalWiki\\\\NeoWiki\\\\Domain\\\\Value\\\\NumberValue constructor expects float\\|int, mixed given\\.$#"
count: 1
path: src/Persistence/MediaWiki/Subject/StatementDeserializer.php
-
message: "#^Parameter \\#1 \\.\\.\\.\\$strings of class ProfessionalWiki\\\\NeoWiki\\\\Domain\\\\Value\\\\StringValue constructor expects string, mixed given\\.$#"
count: 1
path: src/Persistence/MediaWiki/Subject/StatementDeserializer.php
-
message: "#^Cannot access offset 'mainSubject' on mixed\\.$#"
count: 1
path: src/Persistence/MediaWiki/Subject/SubjectContentDataDeserializer.php
-
message: "#^Parameter \\#1 \\$jsonArray of method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\Subject\\\\SubjectContentDataDeserializer\\:\\:deserializeSubjects\\(\\) expects array, mixed given\\.$#"
count: 1
path: src/Persistence/MediaWiki/Subject/SubjectContentDataDeserializer.php
-
message: "#^Parameter \\#1 \\$text of class ProfessionalWiki\\\\NeoWiki\\\\Domain\\\\Subject\\\\SubjectId constructor expects string, mixed given\\.$#"
count: 1
path: src/Persistence/MediaWiki/Subject/SubjectContentDataDeserializer.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\Subject\\\\SubjectContentDataSerializer\\:\\:serialize\\(\\) should return string but returns string\\|false\\.$#"
count: 1
path: src/Persistence/MediaWiki/Subject/SubjectContentDataSerializer.php
-
message: "#^Call to static method newUnsavedComment\\(\\) on an unknown class CommentStoreComment\\.$#"
count: 1
path: src/Persistence/MediaWiki/Subject/SubjectContentRepository.php
-
message: "#^Anonymous function should return Laudis\\\\Neo4j\\\\Databags\\\\SummarizedResult but returns mixed\\.$#"
count: 2
path: src/GraphDatabasePlugins/Neo4j/Persistence/Neo4jQueryStore.php
-
message: "#^Cannot call method get\\(\\) on mixed\\.$#"
count: 1
path: src/GraphDatabasePlugins/Neo4j/Persistence/Neo4jQueryStore.php
-
message: "#^Cannot call method isEmpty\\(\\) on mixed\\.$#"
count: 1
path: src/GraphDatabasePlugins/Neo4j/Persistence/Neo4jQueryStore.php
-
message: "#^Cannot call method get\\(\\) on mixed\\.$#"
count: 1
path: src/GraphDatabasePlugins/Neo4j/Persistence/Neo4jSubjectUpdater.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\GraphDatabasePlugins\\\\Neo4j\\\\Persistence\\\\Neo4jSubjectUpdater\\:\\:getNodeLabels\\(\\) should return array\\<string\\> but returns array\\<int, mixed\\>\\.$#"
count: 1
path: src/GraphDatabasePlugins/Neo4j/Persistence/Neo4jSubjectUpdater.php
-
message: "#^Cannot access property \\$page_title on array\\|stdClass\\|false\\.$#"
count: 1
path: src/Persistence/MediaWiki/DatabaseLayoutNameLookup.php
-
message: "#^Instantiated class TitleValue not found\\.$#"
count: 1
path: src/Persistence/MediaWiki/DatabaseLayoutNameLookup.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\DatabaseLayoutNameLookup\\:\\:dbResultToTitleValueArray\\(\\) has invalid return type TitleValue\\.$#"
count: 1
path: src/Persistence/MediaWiki/DatabaseLayoutNameLookup.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\MediaWiki\\\\DatabaseLayoutNameLookup\\:\\:getLayoutNames\\(\\) has invalid return type TitleValue\\.$#"
count: 1
path: src/Persistence/MediaWiki/DatabaseLayoutNameLookup.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\LayoutNameLookup\\:\\:getLayoutNames\\(\\) has invalid return type TitleValue\\.$#"
count: 1
path: src/Persistence/LayoutNameLookup.php
-
message: "#^Method ProfessionalWiki\\\\NeoWiki\\\\Persistence\\\\SchemaNameLookup\\:\\:getSchemaNamesMatching\\(\\) has invalid return type TitleValue\\.$#"
count: 1
path: src/Persistence/SchemaNameLookup.php
-
message: "#^Call to method getHeader\\(\\) on an unknown class WebRequest\\.$#"
count: 1
path: src/Presentation/CsrfValidator.php
-
message: "#^Parameter \\$request of method ProfessionalWiki\\\\NeoWiki\\\\Presentation\\\\CsrfValidator\\:\\:__construct\\(\\) has invalid type WebRequest\\.$#"
count: 1
path: src/Presentation/CsrfValidator.php
-
message: "#^Property ProfessionalWiki\\\\NeoWiki\\\\Presentation\\\\CsrfValidator\\:\\:\\$request has unknown class WebRequest as its type\\.$#"
count: 1
path: src/Presentation/CsrfValidator.php
-
message: "#^Call to static method errorBox\\(\\) on an unknown class Html\\.$#"
count: 1
path: src/Presentation/TwigTemplateRenderer.php
-
message: "#^Cannot access offset 'propertyType' on mixed\\.$#"
count: 2
path: src/Application/StatementListBuilder.php
-
message: "#^Cannot access offset 'value' on mixed\\.$#"
count: 1
path: src/Application/StatementListBuilder.php
-
message: "#^Parameter \\#1 \\$boolean of class ProfessionalWiki\\\\NeoWiki\\\\Domain\\\\Value\\\\BooleanValue constructor expects bool, mixed given\\.$#"
count: 1
path: src/Application/StatementListBuilder.php
-
message: "#^Parameter \\#1 \\$propertyType of method ProfessionalWiki\\\\NeoWiki\\\\Application\\\\StatementListBuilder\\:\\:deserializeValue\\(\\) expects string, mixed given\\.$#"
count: 1
path: src/Application/StatementListBuilder.php
-
message: "#^Parameter \\#1 \\$json of method ProfessionalWiki\\\\NeoWiki\\\\Application\\\\StatementListBuilder\\:\\:deserializeRelationValue\\(\\) expects array, mixed given\\.$#"
count: 1
path: src/Application/StatementListBuilder.php
-
message: "#^Parameter \\#1 \\$number of class ProfessionalWiki\\\\NeoWiki\\\\Domain\\\\Value\\\\NumberValue constructor expects float\\|int, mixed given\\.$#"
count: 1
path: src/Application/StatementListBuilder.php
-
message: "#^Parameter \\#1 \\.\\.\\.\\$strings of class ProfessionalWiki\\\\NeoWiki\\\\Domain\\\\Value\\\\StringValue constructor expects string, mixed given\\.$#"
count: 1
path: src/Application/StatementListBuilder.php
-
message: "#^Parameter \\$format of class ProfessionalWiki\\\\NeoWiki\\\\Domain\\\\Statement constructor expects string, mixed given\\.$#"
count: 1
path: src/Application/StatementListBuilder.php
-
message: "#^Parameter \\#1 \\$string of function strtoupper expects string, string\\|null given\\.$#"
count: 1
path: src/GraphDatabasePlugins/Neo4j/Application/KeywordCypherQueryValidator.php
-
message: "#^Parameter \\#2 \\$subject of function preg_match expects string, string\\|null given\\.$#"
count: 2
path: src/GraphDatabasePlugins/Neo4j/Application/KeywordCypherQueryValidator.php
-
message: "#^Parameter \\#3 \\$subject of function preg_replace expects array\\|string, string\\|null given\\.$#"
count: 1
path: src/GraphDatabasePlugins/Neo4j/Application/KeywordCypherQueryValidator.php