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
+279-5Lines changed: 279 additions & 5 deletions
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\\.$#"
@@ -60,15 +60,13 @@ parameters:
60
60
# phpstan is confused by the optional dependencies. we check for existence first
61
61
-
62
62
message: "#^Method Http\\\\Client\\\\Common\\\\Plugin\\\\RedirectPlugin::guessStreamFactory\\(\\) should return Psr\\\\Http\\\\Message\\\\StreamFactoryInterface\\|null but returns Nyholm\\\\Psr7\\\\Factory\\\\Psr17Factory\\.$#"
63
-
count: 1
64
-
path: src/Plugin/RedirectPlugin.php
65
-
66
63
# phpstan is confused by the optional dependencies. we check for existence first
67
64
-
68
65
message: "#^Call to static method streamFor\\(\\) on an unknown class GuzzleHttp\\\\Psr7\\\\Utils\\.$#"
66
+
-
67
+
message: "#^Method Http\\\\Client\\\\Common\\\\PluginClient\\:\\:sendRequest\\(\\) should return Psr\\\\Http\\\\Message\\\\ResponseInterface but returns mixed\\.$#"
69
68
count: 1
70
69
path: src/Plugin/RedirectPlugin.php
71
-
72
70
-
73
71
message: "#^Method Http\\\\Client\\\\Common\\\\Plugin\\\\RetryPlugin\\:\\:retry\\(\\) should return Psr\\\\Http\\\\Message\\\\ResponseInterface but returns mixed\\.$#"
74
72
count: 1
@@ -78,3 +76,279 @@ parameters:
78
76
message: "#^Method Http\\\\Client\\\\Common\\\\PluginClient\\:\\:sendRequest\\(\\) should return Psr\\\\Http\\\\Message\\\\ResponseInterface but returns mixed\\.$#"
79
77
count: 2
80
78
path: src/PluginClient.php
79
+
80
+
-
81
+
message: '#^Method Http\\Client\\Common\\BatchResult\:\:getExceptionFor\(\) has UnexpectedValueException in PHPDoc @throws tag but it''s not thrown\.$#'
82
+
identifier: throws.unusedType
83
+
count: 1
84
+
path: src/BatchResult.php
85
+
86
+
-
87
+
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\.$#'
184
+
identifier: offsetAccess.nonOffsetAccessible
185
+
count: 1
186
+
path: src/Plugin/RedirectPlugin.php
187
+
188
+
-
189
+
message: '#^Cannot access offset ''permanent'' on mixed\.$#'
190
+
identifier: offsetAccess.nonOffsetAccessible
191
+
count: 1
192
+
path: src/Plugin/RedirectPlugin.php
193
+
194
+
-
195
+
message: '#^Cannot access offset ''status'' on mixed\.$#'
196
+
identifier: offsetAccess.nonOffsetAccessible
197
+
count: 1
198
+
path: src/Plugin/RedirectPlugin.php
199
+
200
+
-
201
+
message: '#^Cannot access offset ''switch'' on mixed\.$#'
202
+
identifier: offsetAccess.nonOffsetAccessible
203
+
count: 4
204
+
path: src/Plugin/RedirectPlugin.php
205
+
206
+
-
207
+
message: '#^Cannot access offset ''to'' on mixed\.$#'
208
+
identifier: offsetAccess.nonOffsetAccessible
209
+
count: 2
210
+
path: src/Plugin/RedirectPlugin.php
211
+
212
+
-
213
+
message: '#^Cannot access offset ''unless'' on mixed\.$#'
214
+
identifier: offsetAccess.nonOffsetAccessible
215
+
count: 1
216
+
path: src/Plugin/RedirectPlugin.php
217
+
218
+
-
219
+
message: '#^Cannot access offset ''uri'' on mixed\.$#'
220
+
identifier: offsetAccess.nonOffsetAccessible
221
+
count: 1
222
+
path: src/Plugin/RedirectPlugin.php
223
+
224
+
-
225
+
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\.$#'
256
+
identifier: assign.propertyType
257
+
count: 1
258
+
path: src/Plugin/RedirectPlugin.php
259
+
260
+
-
261
+
message: '#^Property Http\\Client\\Common\\Plugin\\RedirectPlugin\:\:\$streamFactory \(Psr\\Http\\Message\\StreamFactoryInterface\|null\) does not accept mixed\.$#'
262
+
identifier: assign.propertyType
263
+
count: 1
264
+
path: src/Plugin/RedirectPlugin.php
265
+
266
+
-
267
+
message: '#^Property Http\\Client\\Common\\Plugin\\RedirectPlugin\:\:\$useDefaultForMultiple \(bool\) does not accept mixed\.$#'
268
+
identifier: assign.propertyType
269
+
count: 1
270
+
path: src/Plugin/RedirectPlugin.php
271
+
272
+
-
273
+
message: '#^Cannot use \+\+ on mixed\.$#'
274
+
identifier: preInc.type
275
+
count: 1
276
+
path: src/Plugin/RetryPlugin.php
277
+
278
+
-
279
+
message: '#^Property Http\\Client\\Common\\Plugin\\RetryPlugin\:\:\$errorResponseDecider \(callable\(\)\: mixed\) does not accept mixed\.$#'
280
+
identifier: assign.propertyType
281
+
count: 1
282
+
path: src/Plugin/RetryPlugin.php
283
+
284
+
-
285
+
message: '#^Property Http\\Client\\Common\\Plugin\\RetryPlugin\:\:\$errorResponseDelay \(callable\(\)\: mixed\) does not accept mixed\.$#'
286
+
identifier: assign.propertyType
287
+
count: 1
288
+
path: src/Plugin/RetryPlugin.php
289
+
290
+
-
291
+
message: '#^Property Http\\Client\\Common\\Plugin\\RetryPlugin\:\:\$exceptionDecider \(callable\(\)\: mixed\) does not accept mixed\.$#'
292
+
identifier: assign.propertyType
293
+
count: 1
294
+
path: src/Plugin/RetryPlugin.php
295
+
296
+
-
297
+
message: '#^Property Http\\Client\\Common\\Plugin\\RetryPlugin\:\:\$exceptionDelay \(callable\(\)\: mixed\) does not accept mixed\.$#'
298
+
identifier: assign.propertyType
299
+
count: 1
300
+
path: src/Plugin/RetryPlugin.php
301
+
302
+
-
303
+
message: '#^Property Http\\Client\\Common\\Plugin\\RetryPlugin\:\:\$retry \(int\) does not accept mixed\.$#'
304
+
identifier: assign.propertyType
305
+
count: 1
306
+
path: src/Plugin/RetryPlugin.php
307
+
308
+
-
309
+
message: '#^Property Http\\Client\\Common\\Plugin\\SeekableBodyPlugin\:\:\$memoryBufferSize \(int\) does not accept mixed\.$#'
310
+
identifier: assign.propertyType
311
+
count: 1
312
+
path: src/Plugin/SeekableBodyPlugin.php
313
+
314
+
-
315
+
message: '#^Property Http\\Client\\Common\\Plugin\\SeekableBodyPlugin\:\:\$useFileBuffer \(bool\) does not accept mixed\.$#'
316
+
identifier: assign.propertyType
317
+
count: 1
318
+
path: src/Plugin/SeekableBodyPlugin.php
319
+
320
+
-
321
+
message: '#^Trait Http\\Client\\Common\\Plugin\\VersionBridgePlugin is used zero times and is not analysed\.$#'
322
+
identifier: trait.unused
323
+
count: 1
324
+
path: src/Plugin/VersionBridgePlugin.php
325
+
326
+
-
327
+
message: '#^Method Http\\Client\\Common\\PluginChain\:\:__invoke\(\) should return Http\\Promise\\Promise but returns mixed\.$#'
328
+
identifier: return.type
329
+
count: 1
330
+
path: src/PluginChain.php
331
+
332
+
-
333
+
message: '#^Parameter \#1 \$response of class Http\\Client\\Promise\\HttpFulfilledPromise constructor expects Psr\\Http\\Message\\ResponseInterface, mixed given\.$#'
334
+
identifier: argument.type
335
+
count: 1
336
+
path: src/PluginClient.php
337
+
338
+
-
339
+
message: '#^Parameter \#3 \$options of class Http\\Client\\Common\\PluginChain constructor expects array\{max_restarts\?\: int\}, array given\.$#'
340
+
identifier: argument.type
341
+
count: 1
342
+
path: src/PluginClient.php
343
+
344
+
-
345
+
message: '#^Parameter \#3 \$options of class Http\\Client\\Common\\PluginClient constructor expects array\{max_restarts\?\: int\}, array given\.$#'
346
+
identifier: argument.type
347
+
count: 1
348
+
path: src/PluginClientBuilder.php
349
+
350
+
-
351
+
message: '#^Trait Http\\Client\\Common\\VersionBridgeClient is used zero times and is not analysed\.$#'
0 commit comments