-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
phpstan-baseline.neon
292 lines (234 loc) · 12 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
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
parameters:
ignoreErrors:
-
message: "#^Cannot call method importNode\\(\\) on DOMDocument\\|null\\.$#"
count: 1
path: src/Console/Descriptor/XmlDescriptor.php
-
message: "#^Parameter \\#1 \\$content of method Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Console\\\\Descriptor\\\\Descriptor\\:\\:write\\(\\) expects string, string\\|false given\\.$#"
count: 1
path: src/Console/Descriptor/XmlDescriptor.php
-
message: "#^Instanceof between \\*NEVER\\* and Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Loader\\\\Configurator\\\\RouteConfigurator will always evaluate to false\\.$#"
count: 1
path: src/Loader/Configurator/CollectionConfigurator.php
-
message: "#^Parameter \\#1 \\$collection of method Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\RouteCollection\\:\\:addCollection\\(\\) expects Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\RouteCollection, Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\Route\\|Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\RouteCollection given\\.$#"
count: 1
path: src/Loader/Configurator/ImportConfigurator.php
-
message: "#^Anonymous class extends @final class Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Loader\\\\PhpFileLoader\\.$#"
count: 1
path: src/Loader/PhpFileLoader.php
-
message: "#^Anonymous function has an unused use \\$loader\\.$#"
count: 1
path: src/Loader/PhpFileLoader.php
-
message: "#^Cannot access property \\$childNodes on DOMElement\\|null\\.$#"
count: 1
path: src/Loader/XmlFileLoader.php
-
message: "#^If condition is always false\\.$#"
count: 1
path: src/Loader/XmlFileLoader.php
-
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#"
count: 5
path: src/Loader/XmlFileLoader.php
-
message: "#^Result of && is always false\\.$#"
count: 2
path: src/Loader/XmlFileLoader.php
-
message: "#^Strict comparison using \\=\\=\\= between string\\|null and array\\{\\} will always evaluate to false\\.$#"
count: 1
path: src/Loader/XmlFileLoader.php
-
message: "#^Offset 1 on array\\{0, null\\} on left side of \\?\\? always exists and is always null\\.$#"
count: 1
path: src/Matcher/CompiledMatcher.php
-
message: "#^Cannot call method getMessage\\(\\) on Exception\\|null\\.$#"
count: 1
path: src/Matcher/Dumper/CompiledMatcherDumper.php
-
message: "#^Cannot use array destructuring on Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\Route\\.$#"
count: 1
path: src/Matcher/Dumper/CompiledMatcherDumper.php
-
message: "#^Invalid type Exception\\|null to throw\\.$#"
count: 1
path: src/Matcher/Dumper/CompiledMatcherDumper.php
-
message: "#^Method Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Matcher\\\\Dumper\\\\CompiledMatcherDumper\\:\\:indent\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: src/Matcher/Dumper/CompiledMatcherDumper.php
-
message: "#^Parameter \\#1 \\$code of method Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Matcher\\\\Dumper\\\\CompiledMatcherDumper\\:\\:indent\\(\\) expects string, string\\|null given\\.$#"
count: 1
path: src/Matcher/Dumper/CompiledMatcherDumper.php
-
message: "#^Cannot use array destructuring on Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\Route\\.$#"
count: 1
path: src/Matcher/Dumper/PhpMatcherDumper.php
-
message: "#^Method Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Matcher\\\\Dumper\\\\PhpMatcherDumper\\:\\:indent\\(\\) should return string but returns string\\|null\\.$#"
count: 1
path: src/Matcher/Dumper/PhpMatcherDumper.php
-
message: "#^Offset 1 on array\\{0, null\\} on left side of \\?\\? always exists and is always null\\.$#"
count: 1
path: src/Matcher/Matcher.php
-
message: "#^Parameter \\#1 \\$string of function trim expects string, string\\|null given\\.$#"
count: 1
path: src/Router/Route.php
-
message: "#^Result of && is always false\\.$#"
count: 1
path: src/Router/Route.php
-
message: "#^Offset 3 on array\\{'variable', mixed, string, string\\} in isset\\(\\) always exists and is not nullable\\.$#"
count: 1
path: src/Router/RouteCompiler.php
-
message: "#^Parameter \\#2 \\$subject of function preg_match expects string, string\\|null given\\.$#"
count: 1
path: src/Router/RouteCompiler.php
-
message: "#^Method Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\Router\\:\\:getGenerator\\(\\) should return Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Generator\\\\GeneratorInterface but returns object\\.$#"
count: 1
path: src/Router/Router.php
-
message: "#^Method Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\Router\\:\\:getMatcher\\(\\) should return Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Matcher\\\\MatcherInterface but returns object\\.$#"
count: 1
path: src/Router/Router.php
-
message: "#^Property Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\Router\\:\\:\\$generator \\(Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Generator\\\\GeneratorInterface\\|null\\) does not accept object\\.$#"
count: 1
path: src/Router/Router.php
-
message: "#^Property Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\Router\\:\\:\\$matcher \\(Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Matcher\\\\MatcherInterface\\|null\\) does not accept object\\.$#"
count: 1
path: src/Router/Router.php
-
message: "#^Property Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\Router\\:\\:\\$options \\(array\\{cache_dir\\: string\\|null, debug\\: bool, generator_class\\: class\\-string\\<Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Generator\\\\GeneratorInterface\\>, generator_base_class\\: class\\-string\\<Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Generator\\\\GeneratorInterface\\>, generator_cache_class\\: non\\-empty\\-string\\|null, generator_dumper_class\\: class\\-string\\<Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Generator\\\\Dumper\\\\GeneratorDumperInterface\\>, matcher_class\\: class\\-string\\<Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Matcher\\\\MatcherInterface\\>, matcher_base_class\\: class\\-string\\<Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Matcher\\\\MatcherInterface\\>, \\.\\.\\.\\}\\) does not accept non\\-empty\\-array\\.$#"
count: 1
path: src/Router/Router.php
-
message: "#^Property Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\Router\\:\\:\\$options \\(array\\{cache_dir\\: string\\|null, debug\\: bool, generator_class\\: class\\-string\\<Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Generator\\\\GeneratorInterface\\>, generator_base_class\\: class\\-string\\<Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Generator\\\\GeneratorInterface\\>, generator_cache_class\\: non\\-empty\\-string\\|null, generator_dumper_class\\: class\\-string\\<Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Generator\\\\Dumper\\\\GeneratorDumperInterface\\>, matcher_class\\: class\\-string\\<Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Matcher\\\\MatcherInterface\\>, matcher_base_class\\: class\\-string\\<Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Matcher\\\\MatcherInterface\\>, \\.\\.\\.\\}\\) does not accept non\\-empty\\-array\\<string, mixed\\>\\.$#"
count: 1
path: src/Router/Router.php
-
message: "#^Binary operation \"\\.\" between 'COLUMNS\\=' and non\\-empty\\-array\\|non\\-falsy\\-string results in an error\\.$#"
count: 1
path: tests/Console/Descriptor/AbstractDescriptorTestCase.php
-
message: "#^Cannot call method add\\(\\) on Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\RouteCollection\\|null\\.$#"
count: 7
path: tests/Generator/Dumper/CompiledGeneratorDumperTest.php
-
message: "#^Cannot call method dump\\(\\) on Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Generator\\\\Dumper\\\\CompiledGeneratorDumper\\|null\\.$#"
count: 5
path: tests/Generator/Dumper/CompiledGeneratorDumperTest.php
-
message: "#^Parameter \\#1 \\$filename of function file_put_contents expects string, string\\|null given\\.$#"
count: 5
path: tests/Generator/Dumper/CompiledGeneratorDumperTest.php
-
message: "#^Parameter \\#1 \\$filename of function unlink expects string, string\\|null given\\.$#"
count: 1
path: tests/Generator/Dumper/CompiledGeneratorDumperTest.php
-
message: "#^Call to method generate\\(\\) on an unknown class DefaultRoutesGenerator\\.$#"
count: 1
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Call to method generate\\(\\) on an unknown class NonExistingRoutesGenerator\\.$#"
count: 1
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Call to method generate\\(\\) on an unknown class ProjectGenerator\\.$#"
count: 2
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Call to method generate\\(\\) on an unknown class ProjectLargeGenerator\\.$#"
count: 2
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Call to method generate\\(\\) on an unknown class WithoutRoutesGenerator\\.$#"
count: 1
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Cannot call method add\\(\\) on Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\RouteCollection\\|null\\.$#"
count: 7
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Cannot call method dump\\(\\) on Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Generator\\\\Dumper\\\\PhpGeneratorDumper\\|null\\.$#"
count: 5
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Instantiated class DefaultRoutesGenerator not found\\.$#"
count: 1
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Instantiated class NonExistingRoutesGenerator not found\\.$#"
count: 1
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Instantiated class ProjectGenerator not found\\.$#"
count: 1
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Instantiated class ProjectLargeGenerator not found\\.$#"
count: 1
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Instantiated class WithoutRoutesGenerator not found\\.$#"
count: 1
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Parameter \\#1 \\$filename of function file_put_contents expects string, string\\|null given\\.$#"
count: 5
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Parameter \\#1 \\$filename of function unlink expects string, string\\|null given\\.$#"
count: 1
path: tests/Generator/Dumper/PhpGeneratorDumperTest.php
-
message: "#^Property Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Tests\\\\Loader\\\\TestObjectLoader\\:\\:\\$loaderMap \\(array\\<string, object\\>\\) does not accept array\\<string, string\\>\\.$#"
count: 1
path: tests/Loader/ObjectLoaderTest.php
-
message: "#^Parameter \\#1 \\$resource of class Symfony\\\\Component\\\\Config\\\\Resource\\\\FileResource constructor expects string, string\\|false given\\.$#"
count: 2
path: tests/Loader/PhpFileLoaderTest.php
-
message: "#^Cannot call method getDefaults\\(\\) on Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\Route\\|null\\.$#"
count: 1
path: tests/Loader/XmlFileLoaderTest.php
-
message: "#^Parameter \\#1 \\$resource of class Symfony\\\\Component\\\\Config\\\\Resource\\\\FileResource constructor expects string, string\\|false given\\.$#"
count: 1
path: tests/Loader/YamlFileLoaderTest.php
-
message: "#^Parameter \\#1 \\$filename of function file_put_contents expects string, string\\|null given\\.$#"
count: 1
path: tests/Matcher/Dumper/CompiledMatcherDumperTest.php
-
message: "#^Parameter \\#1 \\$filename of function unlink expects string, string\\|null given\\.$#"
count: 1
path: tests/Matcher/Dumper/CompiledMatcherDumperTest.php
-
message: "#^Call to method match\\(\\) on an unknown class ProjectMatcher\\.$#"
count: 3
path: tests/Matcher/Dumper/PhpMatcherDumperTest.php
-
message: "#^Instantiated class ProjectMatcher not found\\.$#"
count: 1
path: tests/Matcher/Dumper/PhpMatcherDumperTest.php
-
message: "#^Cannot call method getPattern\\(\\) on Gos\\\\Bundle\\\\PubSubRouterBundle\\\\Router\\\\Route\\|null\\.$#"
count: 3
path: tests/Router/RouteCollectionTest.php