-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
529 lines (442 loc) · 24.3 KB
/
phpstan-baseline.neon
File metadata and controls
529 lines (442 loc) · 24.3 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
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
parameters:
ignoreErrors:
-
message: '#^Cannot unset offset ''url'' on array\{application_name\?\: string, charset\?\: string, defaultTableOptions\?\: array\<string, mixed\>, driver\?\: ''ibm_db2''\|''mysqli''\|''oci8''\|''pdo_mysql''\|''pdo_oci''\|''pdo_pgsql''\|''pdo_sqlite''\|''pdo_sqlsrv''\|''pgsql''\|''sqlite3''\|''sqlsrv'', driverClass\?\: class\-string\<Doctrine\\DBAL\\Driver\>, driverOptions\?\: array\<mixed\>, host\?\: string, keepReplica\?\: bool, \.\.\.\}\.$#'
identifier: unset.offset
count: 1
path: src/Console/DoctrineHelper.php
-
message: '#^Parameter \#1 \$key of class Patchlevel\\Hydrator\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Cryptography/DoctrineCipherKeyStore.php
-
message: '#^Parameter \#3 \$iv of class Patchlevel\\Hydrator\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Cryptography/DoctrineCipherKeyStore.php
-
message: '#^Parameter \#3 \$key of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\CipherKey constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 2
path: src/Cryptography/ExtensionDoctrineCipherKeyStore.php
-
message: '#^Parameter \#5 \$createdAt of class Patchlevel\\Hydrator\\Extension\\Cryptography\\Cipher\\CipherKey constructor expects DateTimeImmutable, mixed given\.$#'
identifier: argument.type
count: 2
path: src/Cryptography/ExtensionDoctrineCipherKeyStore.php
-
message: '#^Call to function method_exists\(\) with ReflectionFunction and ''isAnonymous'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/EventBus/ListenerDescriptor.php
-
message: '#^@readonly property Patchlevel\\EventSourcing\\Message\\Message\:\:\$headers is assigned outside of the constructor\.$#'
identifier: property.readOnlyByPhpDocAssignNotInConstructor
count: 3
path: src/Message/Message.php
-
message: '#^@readonly property cannot have a default value\.$#'
identifier: property.readOnlyByPhpDocDefaultValue
count: 1
path: src/Message/Message.php
-
message: '#^Parameter \#2 \$data of method Patchlevel\\Hydrator\\Hydrator\:\:hydrate\(\) expects array\<string, mixed\>, array\<mixed, mixed\> given\.$#'
identifier: argument.type
count: 1
path: src/Message/Serializer/DefaultHeadersSerializer.php
-
message: '#^Parameter \#1 \.\.\.\$streamName of class Patchlevel\\EventSourcing\\Store\\Criteria\\StreamCriterion constructor expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: src/Repository/DefaultRepository.php
-
message: '#^Parameter \#2 \$data of method Patchlevel\\Hydrator\\Hydrator\:\:hydrate\(\) expects array\<string, mixed\>, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Snapshot/DefaultSnapshotStore.php
-
message: '#^Method Patchlevel\\EventSourcing\\Store\\ArrayStream\:\:current\(\) never returns null so it can be removed from the return type\.$#'
identifier: return.unusedType
count: 1
path: src/Store/ArrayStream.php
-
message: '#^Property Patchlevel\\EventSourcing\\Store\\ArrayStream\:\:\$index \(int\<1, max\>\|null\) does not accept int\<0, max\>\.$#'
identifier: assign.propertyType
count: 1
path: src/Store/ArrayStream.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 1
path: src/Store/ArrayStream.php
-
message: '#^Method Patchlevel\\EventSourcing\\Store\\Criteria\\Criteria\:\:get\(\) should return T of object but returns object\.$#'
identifier: return.type
count: 1
path: src/Store/Criteria/Criteria.php
-
message: '#^Property Patchlevel\\EventSourcing\\Store\\Criteria\\StreamCriterion\:\:\$streamName \(list\<string\>\) does not accept array\<int\|string, string\>\.$#'
identifier: assign.propertyType
count: 1
path: src/Store/Criteria/StreamCriterion.php
-
message: '#^Method Patchlevel\\EventSourcing\\Store\\DoctrineDbalStoreStream\:\:current\(\) never returns null so it can be removed from the return type\.$#'
identifier: return.unusedType
count: 1
path: src/Store/DoctrineDbalStoreStream.php
-
message: '#^Parameter \#3 \$playhead of class Patchlevel\\EventSourcing\\Aggregate\\AggregateHeader constructor expects int\<1, max\>, int given\.$#'
identifier: argument.type
count: 1
path: src/Store/DoctrineDbalStoreStream.php
-
message: '#^Parameter \#4 \$recordedOn of class Patchlevel\\EventSourcing\\Aggregate\\AggregateHeader constructor expects DateTimeImmutable, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Store/DoctrineDbalStoreStream.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 1
path: src/Store/DoctrineDbalStoreStream.php
-
message: '#^Method Patchlevel\\EventSourcing\\Store\\StreamDoctrineDbalStoreStream\:\:current\(\) never returns null so it can be removed from the return type\.$#'
identifier: return.unusedType
count: 1
path: src/Store/StreamDoctrineDbalStoreStream.php
-
message: '#^Parameter \#1 \$playhead of class Patchlevel\\EventSourcing\\Store\\Header\\PlayheadHeader constructor expects int\<1, max\>, int given\.$#'
identifier: argument.type
count: 1
path: src/Store/StreamDoctrineDbalStoreStream.php
-
message: '#^Ternary operator condition is always true\.$#'
identifier: ternary.alwaysTrue
count: 1
path: src/Store/StreamDoctrineDbalStoreStream.php
-
message: '#^Generator expects key type int, int\<1, max\>\|null given\.$#'
identifier: generator.keyType
count: 1
path: src/Subscription/Engine/GapResolverStoreMessageLoader.php
-
message: '#^Property Patchlevel\\EventSourcing\\Subscription\\Engine\\GeneratorStream\:\:\$index \(int\<1, max\>\|null\) does not accept int\.$#'
identifier: assign.propertyType
count: 1
path: src/Subscription/Engine/GeneratorStream.php
-
message: '#^Parameter \#1 \$eventClass of method Patchlevel\\EventSourcing\\Metadata\\Event\\EventRegistry\:\:eventName\(\) expects class\-string, string given\.$#'
identifier: argument.type
count: 1
path: src/Subscription/Lookup/Lookup.php
-
message: '#^Strict comparison using \=\=\= between DateTimeImmutable and false will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Subscription/RetryStrategy/ClockBasedRetryStrategy.php
-
message: '#^Parameter \#3 \$errorContext of class Patchlevel\\EventSourcing\\Subscription\\SubscriptionError constructor expects list\<array\{namespace\: string, short_name\: string, class\: class\-string, message\: string, code\: int\|string, file\: string, line\: int, trace\: list\<array\{file\?\: string, line\?\: int, function\?\: string, class\?\: string, type\?\: string, args\?\: array\<mixed\>\}\>\}\>\|null, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Subscription/Store/DoctrineSubscriptionStore.php
-
message: '#^Parameter \#9 \$cleanupTasks of class Patchlevel\\EventSourcing\\Subscription\\Subscription constructor expects list\<object\>\|null, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Subscription/Store/DoctrineSubscriptionStore.php
-
message: '#^Cannot cast mixed to string\.$#'
identifier: cast.string
count: 3
path: src/Subscription/ThrowableToErrorContextTransformer.php
-
message: '#^Cannot access offset ''name'' on array\<string, mixed\>\|false\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: tests/Benchmark/BasicImplementation/Projection/ProfileProjector.php
-
message: '#^Method Patchlevel\\EventSourcing\\Tests\\Benchmark\\BasicImplementation\\Projection\\ProfileProjector\:\:getProfileName\(\) should return string but returns mixed\.$#'
identifier: return.type
count: 1
path: tests/Benchmark/BasicImplementation/Projection/ProfileProjector.php
-
message: '#^Parameter \#1 \$id of static method Patchlevel\\EventSourcing\\Tests\\Benchmark\\BasicImplementation\\Profile\:\:create\(\) expects Patchlevel\\EventSourcing\\Tests\\Benchmark\\BasicImplementation\\ProfileId, Patchlevel\\EventSourcing\\Aggregate\\AggregateRootId given\.$#'
identifier: argument.type
count: 1
path: tests/Benchmark/SplitStreamBench.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Patchlevel\\\\EventSourcing\\\\Tests\\\\Integration\\\\BankAccountSplitStream\\\\BankAccount'' and Patchlevel\\EventSourcing\\Tests\\Integration\\BankAccountSplitStream\\BankAccount will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 6
path: tests/Integration/BankAccountSplitStream/IntegrationTest.php
-
message: '#^Access to an undefined property object\:\:\$accountId\.$#'
identifier: property.notFound
count: 2
path: tests/Integration/BankAccountSplitStream/Projection/BankAccountProjector.php
-
message: '#^Access to an undefined property object\:\:\$balanceInCents\.$#'
identifier: property.notFound
count: 1
path: tests/Integration/BankAccountSplitStream/Projection/BankAccountProjector.php
-
message: '#^Access to an undefined property object\:\:\$name\.$#'
identifier: property.notFound
count: 1
path: tests/Integration/BankAccountSplitStream/Projection/BankAccountProjector.php
-
message: '#^Cannot call method toString\(\) on mixed\.$#'
identifier: method.nonObject
count: 2
path: tests/Integration/BankAccountSplitStream/Projection/BankAccountProjector.php
-
message: '#^Access to an undefined property object\:\:\$name\.$#'
identifier: property.notFound
count: 2
path: tests/Integration/BasicImplementation/BasicIntegrationTest.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Patchlevel\\\\EventSourcing\\\\Tests\\\\Integration\\\\BasicImplementation\\\\Profile'' and Patchlevel\\EventSourcing\\Tests\\Integration\\BasicImplementation\\Profile will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 2
path: tests/Integration/BasicImplementation/BasicIntegrationTest.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Patchlevel\\\\EventSourcing\\\\Tests\\\\Integration\\\\BasicImplementation\\\\ProfileWithCommands'' and Patchlevel\\EventSourcing\\Tests\\Integration\\BasicImplementation\\ProfileWithCommands will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 1
path: tests/Integration/BasicImplementation/BasicIntegrationTest.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Integration\\BasicImplementation\\Profile\:\:\$id is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Integration/BasicImplementation/Profile.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Integration\\BasicImplementation\\ProfileWithCommands\:\:\$id is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Integration/BasicImplementation/ProfileWithCommands.php
-
message: '#^Cannot access offset ''name'' on array\<string, mixed\>\|false\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: tests/Integration/BasicImplementation/Projection/ProfileProjector.php
-
message: '#^Method Patchlevel\\EventSourcing\\Tests\\Integration\\BasicImplementation\\Projection\\ProfileProjector\:\:getProfileName\(\) should return string but returns mixed\.$#'
identifier: return.type
count: 1
path: tests/Integration/BasicImplementation/Projection/ProfileProjector.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Patchlevel\\\\EventSourcing\\\\Tests\\\\Integration\\\\ChildAggregate\\\\Profile'' and Patchlevel\\EventSourcing\\Tests\\Integration\\ChildAggregate\\Profile will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 2
path: tests/Integration/ChildAggregate/ChildAggregateIntegrationTest.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Integration\\ChildAggregate\\Profile\:\:\$id is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Integration/ChildAggregate/Profile.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Patchlevel\\\\EventSourcing\\\\Tests\\\\Integration\\\\MicroAggregate\\\\Profile'' and Patchlevel\\EventSourcing\\Tests\\Integration\\MicroAggregate\\Profile will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 2
path: tests/Integration/MicroAggregate/MicroAggregateIntegrationTest.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Integration\\MicroAggregate\\Profile\:\:\$id is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Integration/MicroAggregate/Profile.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with 0 and array\{array\<string, mixed\>\} will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 4
path: tests/Integration/PersonalData/PersonalDataTest.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Patchlevel\\\\EventSourcing\\\\Tests\\\\Integration\\\\PersonalData\\\\Profile'' and Patchlevel\\EventSourcing\\Tests\\Integration\\PersonalData\\Profile will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 8
path: tests/Integration/PersonalData/PersonalDataTest.php
-
message: '#^Parameter \#2 \$haystack of static method PHPUnit\\Framework\\Assert\:\:assertStringNotContainsString\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 3
path: tests/Integration/PersonalData/PersonalDataTest.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Integration\\Store\\Profile\:\:\$id is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Integration/Store/Profile.php
-
message: '#^Using nullsafe method call on non\-nullable type Patchlevel\\EventSourcing\\Store\\Stream\. Use \-\> instead\.$#'
identifier: nullsafe.neverNull
count: 1
path: tests/Integration/Store/StreamDoctrineDbalStoreTest.php
-
message: '#^Parameter \#1 \$table of class Patchlevel\\EventSourcing\\Subscription\\Cleanup\\Dbal\\DropTableTask constructor expects non\-empty\-string, string given\.$#'
identifier: argument.type
count: 1
path: tests/Integration/Subscription/Subscriber/ProfileProjectionWithCleanup.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with 0 and array\{Patchlevel\\EventSourcing\\Subscription\\Subscription\} will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 1
path: tests/Integration/Subscription/SubscriptionTest.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertArrayHasKey\(\) with 2 and array\{Patchlevel\\EventSourcing\\Message\\Message, Patchlevel\\EventSourcing\\Message\\Message, Patchlevel\\EventSourcing\\Message\\Message\} will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 1
path: tests/Integration/Subscription/SubscriptionTest.php
-
message: '#^Parameter \#4 \$maxAttempts of class Patchlevel\\EventSourcing\\Subscription\\RetryStrategy\\ClockBasedRetryStrategy constructor expects int\<1, max\>, 0 given\.$#'
identifier: argument.type
count: 1
path: tests/Integration/Subscription/SubscriptionTest.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Patchlevel\\\\EventSourcing\\\\Metadata\\\\AggregateRoot\\\\AggregateRootMetadata'' and Patchlevel\\EventSourcing\\Metadata\\AggregateRoot\\AggregateRootMetadata\<Patchlevel\\EventSourcing\\Aggregate\\BasicAggregateRoot\> will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 1
path: tests/Unit/Aggregate/AggregateRootTest.php
-
message: '#^Parameter \#2 \$aggregateClass of class Patchlevel\\EventSourcing\\CommandBus\\Handler\\CreateAggregateHandler constructor expects class\-string\<Patchlevel\\EventSourcing\\Aggregate\\AggregateRoot\>, string given\.$#'
identifier: argument.type
count: 1
path: tests/Unit/CommandBus/Handler/CreateAggregateHandlerTest.php
-
message: '#^Call to method PHPUnit\\Framework\\Assert\:\:assertTrue\(\) with true will always evaluate to true\.$#'
identifier: method.alreadyNarrowedType
count: 3
path: tests/Unit/CommandBus/InstantRetryCommandBusTest.php
-
message: '#^Parameter \#1 \$aggregate of class Patchlevel\\EventSourcing\\Repository\\AggregateOutdated constructor expects class\-string\<Patchlevel\\EventSourcing\\Aggregate\\AggregateRoot\>, string given\.$#'
identifier: argument.type
count: 5
path: tests/Unit/CommandBus/InstantRetryCommandBusTest.php
-
message: '#^Parameter \#1 \$data of static method Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\Message\:\:fromArray\(\) expects array\{id\: string, text\: string, createdAt\: string\}, array\<mixed, mixed\> given\.$#'
identifier: argument.type
count: 1
path: tests/Unit/Fixture/MessageNormalizer.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileInvalid\:\:\$email is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Unit/Fixture/ProfileInvalid.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileInvalid\:\:\$id is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Unit/Fixture/ProfileInvalid.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileWithBrokenApplyBothUsage\:\:\$id is unused\.$#'
identifier: property.unused
count: 1
path: tests/Unit/Fixture/ProfileWithBrokenApplyBothUsage.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileWithBrokenApplyIntersection\:\:\$id is unused\.$#'
identifier: property.unused
count: 1
path: tests/Unit/Fixture/ProfileWithBrokenApplyIntersection.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileWithBrokenApplyMultipleApply\:\:\$id is unused\.$#'
identifier: property.unused
count: 1
path: tests/Unit/Fixture/ProfileWithBrokenApplyMultipleApply.php
-
message: '#^Method Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileWithBrokenApplyNoType\:\:applyWithNoType\(\) has parameter \$event with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: tests/Unit/Fixture/ProfileWithBrokenApplyNoType.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileWithBrokenApplyNoType\:\:\$id is unused\.$#'
identifier: property.unused
count: 1
path: tests/Unit/Fixture/ProfileWithBrokenApplyNoType.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileWithBrokenId\:\:\$id is never read, only written\.$#'
identifier: property.onlyWritten
count: 1
path: tests/Unit/Fixture/ProfileWithBrokenId.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileWithEmptyApply\:\:\$id is unused\.$#'
identifier: property.unused
count: 1
path: tests/Unit/Fixture/ProfileWithEmptyApply.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileWithHandler\:\:\$id is unused\.$#'
identifier: property.unused
count: 1
path: tests/Unit/Fixture/ProfileWithHandler.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileWithSharedApplyContext\:\:\$id is unused\.$#'
identifier: property.unused
count: 1
path: tests/Unit/Fixture/ProfileWithSharedApplyContext.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileWithSuppressAll\:\:\$id is unused\.$#'
identifier: property.unused
count: 1
path: tests/Unit/Fixture/ProfileWithSuppressAll.php
-
message: '#^Property Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\WrongNormalizerBasicAggregate\:\:\$id is unused\.$#'
identifier: property.unused
count: 1
path: tests/Unit/Fixture/WrongNormalizerBasicAggregate.php
-
message: '#^Parameter \#2 \$callable of class Patchlevel\\EventSourcing\\Message\\Translator\\ReplaceEventTranslator constructor expects callable\(Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\MessagePublished\)\: object, Closure\(Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileCreated\)\: Patchlevel\\EventSourcing\\Tests\\Unit\\Fixture\\ProfileVisited given\.$#'
identifier: argument.type
count: 1
path: tests/Unit/Message/Translator/ReplaceEventTranslatorTest.php
-
message: '#^Method class@anonymous/tests/Unit/Metadata/Subscriber/AttributeSubscriberMetadataFactoryTest\.php\:237\:\:profileVisited\(\) has parameter \$message with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: tests/Unit/Metadata/Subscriber/AttributeSubscriberMetadataFactoryTest.php
-
message: '#^Cannot access offset 0 on iterable\<int, Patchlevel\\EventSourcing\\QueryBus\\HandlerDescriptor\>\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 2
path: tests/Unit/QueryBus/ServiceHandlerProviderTest.php
-
message: '#^Cannot call method callable\(\) on mixed\.$#'
identifier: method.nonObject
count: 2
path: tests/Unit/QueryBus/ServiceHandlerProviderTest.php
-
message: '#^Match expression does not handle remaining value\: string$#'
identifier: match.unhandled
count: 1
path: tests/Unit/Subscription/Engine/DefaultSubscriptionEngineTest.php
-
message: '#^Parameter \#1 \$error of static method Patchlevel\\EventSourcing\\Subscription\\ThrowableToErrorContextTransformer\:\:transform\(\) expects Throwable, Throwable\|null given\.$#'
identifier: argument.type
count: 8
path: tests/Unit/Subscription/Engine/DefaultSubscriptionEngineTest.php
-
message: '#^Offset ''args'' on array\{file\: literal\-string&non\-falsy\-string, line\: int, function\: ''createException'', class\: ''Patchlevel\\\\EventSourcing\\\\Tests\\\\Unit\\\\Subscription\\\\ErrorContextTest'', type\: ''\-\>'', args\: array\<mixed\>\} on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
count: 1
path: tests/Unit/Subscription/ErrorContextTest.php
-
message: '#^Offset ''class'' on array\{file\: literal\-string&non\-falsy\-string, line\: int, function\: ''createException'', class\: string, type\?\: string, args\?\: array\<mixed\>\} on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
count: 1
path: tests/Unit/Subscription/ErrorContextTest.php
-
message: '#^Offset ''file'' on array\{file\: string, line\?\: int, function\?\: string, class\?\: string, type\?\: string, args\?\: array\<mixed\>\} on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
count: 1
path: tests/Unit/Subscription/ErrorContextTest.php
-
message: '#^Offset ''type'' on array\{file\: literal\-string&non\-falsy\-string, line\: int, function\: ''createException'', class\: ''Patchlevel\\\\EventSourcing\\\\Tests\\\\Unit\\\\Subscription\\\\ErrorContextTest'', type\: string, args\?\: array\<mixed\>\} on left side of \?\? always exists and is not nullable\.$#'
identifier: nullCoalesce.offset
count: 1
path: tests/Unit/Subscription/ErrorContextTest.php
-
message: '#^Parameter \$maxAttempts of class Patchlevel\\EventSourcing\\Subscription\\RetryStrategy\\ClockBasedRetryStrategy constructor expects int\<1, max\>, int given\.$#'
identifier: argument.type
count: 1
path: tests/Unit/Subscription/RetryStrategy/ClockBasedRetryStrategyTest.php
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) with ''Patchlevel\\\\EventSourcing\\\\Subscription\\\\Lookup\\\\Lookup'' and Patchlevel\\EventSourcing\\Subscription\\Lookup\\Lookup will always evaluate to true\.$#'
identifier: staticMethod.alreadyNarrowedType
count: 1
path: tests/Unit/Subscription/Subscriber/ArgumentResolver/LookupResolverTest.php