You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: phpstan.neon.dist
+282-1Lines changed: 282 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
parameters:
2
2
level: max
3
-
checkMissingIterableValueType: false
4
3
treatPhpDocTypesAsCertain: false
5
4
paths:
6
5
- src
7
6
ignoreErrors:
7
+
- "#.*no value type specified in iterable type array.*#"
8
8
# Exception still thrown in PHP 8, not sure why phpstan complains
9
9
-
10
10
message: "#^Dead catch - UnexpectedValueException is never thrown in the try block\\.$#"
@@ -69,6 +69,11 @@ parameters:
69
69
count: 1
70
70
path: src/Plugin/RedirectPlugin.php
71
71
72
+
-
73
+
message: "#^Method Psr\\\\Http\\\\Message\\\\StreamFactoryInterface@anonymous\/Plugin\/RedirectPlugin.php:221\\:\\:createStream\\(\\) should return Psr\\\\Http\\\\Message\\\\StreamInterface but returns mixed\\.$#"
74
+
count: 1
75
+
path: src/Plugin/RedirectPlugin.php
76
+
72
77
-
73
78
message: "#^Method Http\\\\Client\\\\Common\\\\Plugin\\\\RetryPlugin\\:\\:retry\\(\\) should return Psr\\\\Http\\\\Message\\\\ResponseInterface but returns mixed\\.$#"
74
79
count: 1
@@ -78,3 +83,279 @@ parameters:
78
83
message: "#^Method Http\\\\Client\\\\Common\\\\PluginClient\\:\\:sendRequest\\(\\) should return Psr\\\\Http\\\\Message\\\\ResponseInterface but returns mixed\\.$#"
79
84
count: 2
80
85
path: src/PluginClient.php
86
+
87
+
-
88
+
message: '#^Method Http\\Client\\Common\\BatchResult\:\:getExceptionFor\(\) has UnexpectedValueException in PHPDoc @throws tag but it''s not thrown\.$#'
89
+
identifier: throws.unusedType
90
+
count: 1
91
+
path: src/BatchResult.php
92
+
93
+
-
94
+
message: '#^Method Http\\Client\\Common\\BatchResult\:\:getResponseFor\(\) has UnexpectedValueException in PHPDoc @throws tag but it''s not thrown\.$#'
message: '#^Method Http\\Client\\Common\\HttpMethodsClient\:\:createRequest\(\) should return Psr\\Http\\Message\\RequestInterface but returns mixed\.$#'
message: '#^Cannot access offset ''multiple'' on mixed\.$#'
191
+
identifier: offsetAccess.nonOffsetAccessible
192
+
count: 1
193
+
path: src/Plugin/RedirectPlugin.php
194
+
195
+
-
196
+
message: '#^Cannot access offset ''permanent'' on mixed\.$#'
197
+
identifier: offsetAccess.nonOffsetAccessible
198
+
count: 1
199
+
path: src/Plugin/RedirectPlugin.php
200
+
201
+
-
202
+
message: '#^Cannot access offset ''status'' on mixed\.$#'
203
+
identifier: offsetAccess.nonOffsetAccessible
204
+
count: 1
205
+
path: src/Plugin/RedirectPlugin.php
206
+
207
+
-
208
+
message: '#^Cannot access offset ''switch'' on mixed\.$#'
209
+
identifier: offsetAccess.nonOffsetAccessible
210
+
count: 4
211
+
path: src/Plugin/RedirectPlugin.php
212
+
213
+
-
214
+
message: '#^Cannot access offset ''to'' on mixed\.$#'
215
+
identifier: offsetAccess.nonOffsetAccessible
216
+
count: 2
217
+
path: src/Plugin/RedirectPlugin.php
218
+
219
+
-
220
+
message: '#^Cannot access offset ''unless'' on mixed\.$#'
221
+
identifier: offsetAccess.nonOffsetAccessible
222
+
count: 1
223
+
path: src/Plugin/RedirectPlugin.php
224
+
225
+
-
226
+
message: '#^Cannot access offset ''uri'' on mixed\.$#'
227
+
identifier: offsetAccess.nonOffsetAccessible
228
+
count: 1
229
+
path: src/Plugin/RedirectPlugin.php
230
+
231
+
-
232
+
message: '#^Method Http\\Client\\Common\\Plugin\\RedirectPlugin\:\:guessStreamFactory\(\) should return Psr\\Http\\Message\\StreamFactoryInterface\|null but returns mixed\.$#'
message: '#^Property Http\\Client\\Common\\Plugin\\RedirectPlugin\:\:\$preserveHeader \(array\|bool\) does not accept mixed\.$#'
263
+
identifier: assign.propertyType
264
+
count: 1
265
+
path: src/Plugin/RedirectPlugin.php
266
+
267
+
-
268
+
message: '#^Property Http\\Client\\Common\\Plugin\\RedirectPlugin\:\:\$streamFactory \(Psr\\Http\\Message\\StreamFactoryInterface\|null\) does not accept mixed\.$#'
269
+
identifier: assign.propertyType
270
+
count: 1
271
+
path: src/Plugin/RedirectPlugin.php
272
+
273
+
-
274
+
message: '#^Property Http\\Client\\Common\\Plugin\\RedirectPlugin\:\:\$useDefaultForMultiple \(bool\) does not accept mixed\.$#'
275
+
identifier: assign.propertyType
276
+
count: 1
277
+
path: src/Plugin/RedirectPlugin.php
278
+
279
+
-
280
+
message: '#^Cannot use \+\+ on mixed\.$#'
281
+
identifier: preInc.type
282
+
count: 1
283
+
path: src/Plugin/RetryPlugin.php
284
+
285
+
-
286
+
message: '#^Property Http\\Client\\Common\\Plugin\\RetryPlugin\:\:\$errorResponseDecider \(callable\(\)\: mixed\) does not accept mixed\.$#'
287
+
identifier: assign.propertyType
288
+
count: 1
289
+
path: src/Plugin/RetryPlugin.php
290
+
291
+
-
292
+
message: '#^Property Http\\Client\\Common\\Plugin\\RetryPlugin\:\:\$errorResponseDelay \(callable\(\)\: mixed\) does not accept mixed\.$#'
293
+
identifier: assign.propertyType
294
+
count: 1
295
+
path: src/Plugin/RetryPlugin.php
296
+
297
+
-
298
+
message: '#^Property Http\\Client\\Common\\Plugin\\RetryPlugin\:\:\$exceptionDecider \(callable\(\)\: mixed\) does not accept mixed\.$#'
299
+
identifier: assign.propertyType
300
+
count: 1
301
+
path: src/Plugin/RetryPlugin.php
302
+
303
+
-
304
+
message: '#^Property Http\\Client\\Common\\Plugin\\RetryPlugin\:\:\$exceptionDelay \(callable\(\)\: mixed\) does not accept mixed\.$#'
305
+
identifier: assign.propertyType
306
+
count: 1
307
+
path: src/Plugin/RetryPlugin.php
308
+
309
+
-
310
+
message: '#^Property Http\\Client\\Common\\Plugin\\RetryPlugin\:\:\$retry \(int\) does not accept mixed\.$#'
311
+
identifier: assign.propertyType
312
+
count: 1
313
+
path: src/Plugin/RetryPlugin.php
314
+
315
+
-
316
+
message: '#^Property Http\\Client\\Common\\Plugin\\SeekableBodyPlugin\:\:\$memoryBufferSize \(int\) does not accept mixed\.$#'
317
+
identifier: assign.propertyType
318
+
count: 1
319
+
path: src/Plugin/SeekableBodyPlugin.php
320
+
321
+
-
322
+
message: '#^Property Http\\Client\\Common\\Plugin\\SeekableBodyPlugin\:\:\$useFileBuffer \(bool\) does not accept mixed\.$#'
323
+
identifier: assign.propertyType
324
+
count: 1
325
+
path: src/Plugin/SeekableBodyPlugin.php
326
+
327
+
-
328
+
message: '#^Trait Http\\Client\\Common\\Plugin\\VersionBridgePlugin is used zero times and is not analysed\.$#'
329
+
identifier: trait.unused
330
+
count: 1
331
+
path: src/Plugin/VersionBridgePlugin.php
332
+
333
+
-
334
+
message: '#^Method Http\\Client\\Common\\PluginChain\:\:__invoke\(\) should return Http\\Promise\\Promise but returns mixed\.$#'
335
+
identifier: return.type
336
+
count: 1
337
+
path: src/PluginChain.php
338
+
339
+
-
340
+
message: '#^Parameter \#1 \$response of class Http\\Client\\Promise\\HttpFulfilledPromise constructor expects Psr\\Http\\Message\\ResponseInterface, mixed given\.$#'
341
+
identifier: argument.type
342
+
count: 1
343
+
path: src/PluginClient.php
344
+
345
+
-
346
+
message: '#^Parameter \#3 \$options of class Http\\Client\\Common\\PluginChain constructor expects array\{max_restarts\?\: int\}, array given\.$#'
347
+
identifier: argument.type
348
+
count: 1
349
+
path: src/PluginClient.php
350
+
351
+
-
352
+
message: '#^Parameter \#3 \$options of class Http\\Client\\Common\\PluginClient constructor expects array\{max_restarts\?\: int\}, array given\.$#'
353
+
identifier: argument.type
354
+
count: 1
355
+
path: src/PluginClientBuilder.php
356
+
357
+
-
358
+
message: '#^Trait Http\\Client\\Common\\VersionBridgeClient is used zero times and is not analysed\.$#'
0 commit comments