-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathanalysis-baseline.toml
More file actions
541 lines (451 loc) · 37.7 KB
/
Copy pathanalysis-baseline.toml
File metadata and controls
541 lines (451 loc) · 37.7 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
530
531
532
533
534
535
536
537
538
539
540
541
variant = "loose"
[[issues]]
file = "src/AdapterPlatform.php"
code = "falsable-return-statement"
message = '''Function `PhpDb\Mysql\AdapterPlatform::quoteViaDriver` is declared to return `null|string` but possibly returns 'false' (inferred as `false|string`).'''
count = 1
[[issues]]
file = "src/AdapterPlatform.php"
code = "impossible-condition"
message = "This condition (type `false`) will always evaluate to false."
count = 1
[[issues]]
file = "src/AdapterPlatform.php"
code = "invalid-return-statement"
message = 'Invalid return type for function `PhpDb\Mysql\AdapterPlatform::quoteViaDriver`: expected `null|string`, but found `false|string`.'
count = 1
[[issues]]
file = "src/AdapterPlatform.php"
code = "missing-constant-type"
message = "Class constant `PLATFORM_NAME` is missing a type hint."
count = 1
[[issues]]
file = "src/AdapterPlatform.php"
code = "possibly-invalid-argument"
message = 'Possible argument type mismatch for argument #1 of `PhpDb\Mysql\AdapterPlatform::quoteViaDriver`: expected `string`, but possibly received `bool|float|int|string`.'
count = 1
[[issues]]
file = "src/Connection.php"
code = "incompatible-property-type"
message = 'Property `PhpDb\Mysql\Connection::$resource` has an incompatible type declaration from docblock.'
count = 1
[[issues]]
file = "src/Connection.php"
code = "invalid-iterator"
message = "The expression provided to `foreach` is not iterable. It resolved to type `mixed`, which is not iterable."
count = 1
[[issues]]
file = "src/Connection.php"
code = "invalid-property-assignment-value"
message = "Invalid type for property `$resource`: expected `mysqli`, but got `null`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #1 of `mysqli::options`: expected `int`, but found `mixed`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #1 of `mysqli::set_charset`: expected `string`, but found `mixed`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #1 of `mysqli::ssl_set`: expected `null|string`, but found `nonnull`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #2 of `mysqli::options`: expected `int|string`, but found `mixed`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #2 of `mysqli::real_connect`: expected `null|string`, but found `mixed`."
count = 2
[[issues]]
file = "src/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #2 of `mysqli::ssl_set`: expected `null|string`, but found `nonnull`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #3 of `mysqli::real_connect`: expected `null|string`, but found `mixed`."
count = 2
[[issues]]
file = "src/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #3 of `mysqli::ssl_set`: expected `null|string`, but found `nonnull`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #4 of `mysqli::real_connect`: expected `null|string`, but found `mixed`."
count = 2
[[issues]]
file = "src/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #4 of `mysqli::ssl_set`: expected `null|string`, but found `nonnull`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #5 of `mysqli::ssl_set`: expected `null|string`, but found `nonnull`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "mixed-assignment"
message = "Assigning `mixed` type to a variable may lead to unexpected behavior."
count = 7
[[issues]]
file = "src/Connection.php"
code = "mixed-assignment"
message = "Assigning `nonnull` type to a variable may lead to unexpected behavior."
count = 6
[[issues]]
file = "src/Connection.php"
code = "mixed-operand"
message = "Left operand in `&&` operation has `mixed` type."
count = 1
[[issues]]
file = "src/Connection.php"
code = "mixed-return-statement"
message = "Could not infer a precise return type for function `{closure:src/Connection.php:118:31}`. Saw type `nonnull`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "possibly-null-argument"
message = "Argument #1 of method `Exception::__construct` is possibly `null`, but parameter type `string` does not accept it."
count = 1
[[issues]]
file = "src/Connection.php"
code = "possibly-undefined-string-array-index"
message = "Possibly undefined array key `string('charset')` accessed on `array<array-key, mixed>`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "possibly-undefined-string-array-index"
message = "Possibly undefined array key `string('driver_options')` accessed on `array<array-key, mixed>`."
count = 1
[[issues]]
file = "src/Connection.php"
code = "redundant-condition"
message = "This condition (type `true`) will always evaluate to true."
count = 2
[[issues]]
file = "src/Container/ConnectionInterfaceFactory.php"
code = "less-specific-argument"
message = 'Argument type mismatch for argument #1 of `PhpDb\Mysql\Connection::__construct`: expected `array<string, mixed>|mysqli|null`, but provided type `non-empty-array<array-key, mixed>` is less specific.'
count = 1
[[issues]]
file = "src/Container/ConnectionInterfaceFactory.php"
code = "mixed-argument"
message = 'Invalid argument type for argument #2 of `PhpDb\Adapter\Exception\InvalidConnectionParametersException::__construct`: expected `array<array-key, mixed>`, but found `nonnull`.'
count = 1
[[issues]]
file = "src/Container/ConnectionInterfaceFactory.php"
code = "mixed-assignment"
message = "Assigning `nonnull` type to a variable may lead to unexpected behavior."
count = 1
[[issues]]
file = "src/Container/DriverInterfaceFactory.php"
code = "mixed-argument"
message = 'Invalid argument type for argument #2 of `Laminas\ServiceManager\ServiceManager::build`: expected `array<array-key, mixed>|null`, but found `nonnull`.'
count = 1
[[issues]]
file = "src/Container/MetadataInterfaceFactory.php"
code = "missing-constant-type"
message = "Class constant `ADAPTER_SERVICE_NAME` is missing a type hint."
count = 1
[[issues]]
file = "src/Container/MetadataInterfaceFactory.php"
code = "mixed-argument"
message = 'Invalid argument type for argument #1 of `PhpDb\Metadata\Source\AbstractSource::__construct`: expected `PhpDb\Adapter\AdapterInterface&PhpDb\Adapter\SchemaAwareInterface`, but found `mixed`.'
count = 1
[[issues]]
file = "src/Container/MetadataInterfaceFactory.php"
code = "mixed-argument"
message = 'Invalid argument type for argument #1 of `Psr\Container\ContainerInterface::get`: expected `string`, but found `nonnull`.'
count = 1
[[issues]]
file = "src/Container/MetadataInterfaceFactory.php"
code = "mixed-assignment"
message = "Assigning `nonnull` type to a variable may lead to unexpected behavior."
count = 1
[[issues]]
file = "src/Container/PdoConnectionInterfaceFactory.php"
code = "less-specific-argument"
message = 'Argument type mismatch for argument #1 of `PhpDb\Mysql\Pdo\Connection::__construct`: expected `PDO|array<string, mixed>`, but provided type `non-empty-array<array-key, mixed>` is less specific.'
count = 1
[[issues]]
file = "src/Container/PdoConnectionInterfaceFactory.php"
code = "mixed-argument"
message = 'Invalid argument type for argument #2 of `PhpDb\Adapter\Exception\InvalidConnectionParametersException::__construct`: expected `array<array-key, mixed>`, but found `nonnull`.'
count = 1
[[issues]]
file = "src/Container/PdoConnectionInterfaceFactory.php"
code = "mixed-assignment"
message = "Assigning `nonnull` type to a variable may lead to unexpected behavior."
count = 1
[[issues]]
file = "src/Container/PdoDriverInterfaceFactory.php"
code = "mixed-argument"
message = 'Invalid argument type for argument #2 of `Laminas\ServiceManager\ServiceManager::build`: expected `array<array-key, mixed>|null`, but found `nonnull`.'
count = 1
[[issues]]
file = "src/Container/PdoDriverInterfaceFactory.php"
code = "mixed-argument"
message = 'Invalid argument type for argument #4 of `PhpDb\Mysql\Pdo\Driver::__construct`: expected `array<string, mixed>`, but found `nonnull`.'
count = 1
[[issues]]
file = "src/Container/PdoStatementFactory.php"
code = "possibly-null-argument"
message = 'Argument #1 of method `PhpDb\Adapter\Driver\Pdo\Statement::__construct` is possibly `null`, but parameter type `array<array-key, mixed>` does not accept it.'
count = 1
[[issues]]
file = "src/Container/PlatformInterfaceFactory.php"
code = "mixed-assignment"
message = "Assigning `mixed` type to a variable may lead to unexpected behavior."
count = 1
[[issues]]
file = "src/Container/StatementInterfaceFactory.php"
code = "mixed-argument"
message = 'Invalid argument type for argument #1 of `PhpDb\Mysql\Statement::__construct`: expected `bool`, but found `nonnull`.'
count = 1
[[issues]]
file = "src/Driver.php"
code = "docblock-type-mismatch"
message = "Docblock type mismatch for variable `$resource`."
count = 1
[[issues]]
file = "src/Driver.php"
code = "incompatible-parameter-type"
message = 'Parameter `$resource` of `PhpDb\Mysql\Driver::createresult()` expects type `mysqli|mysqli_stmt|unknown-ref(PhpDb\Mysql\mysqli_result)` but parent `PhpDb\Adapter\Driver\DriverInterface::createresult()` expects type `resource`'
count = 1
[[issues]]
file = "src/Driver.php"
code = "incompatible-parameter-type"
message = 'Parameter `$sqlOrResource` of `PhpDb\Mysql\Driver::createstatement()` expects type `mysqli|mysqli_stmt|string` but parent `PhpDb\Adapter\Driver\DriverInterface::createstatement()` expects type `resource|string`'
count = 1
[[issues]]
file = "src/Driver.php"
code = "missing-property-type"
message = "Property `$options` is missing a type hint."
count = 1
[[issues]]
file = "src/Driver.php"
code = "non-existent-class-like"
message = 'Cannot find class, interface, enum, or type alias `PhpDb\Mysql\mysqli_result`.'
count = 1
[[issues]]
file = "src/Driver.php"
code = "possibly-invalid-argument"
message = 'Possible argument type mismatch for argument #1 of `PhpDb\Mysql\Result::initialize`: expected `mysqli|mysqli_result|mysqli_stmt`, but possibly received `mysqli|mysqli_stmt|unknown-ref(PhpDb\Mysql\mysqli_result)`.'
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "impossible-condition"
message = "This condition (type `false`) will always evaluate to false."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "impossible-nonnull-entry-check"
message = "Impossible `isset` check on key `'constraint_names'` accessed on `array{'columns'?: array<string, array<string, array<string, array{'character_maximum_length': int|null|string, 'character_octet_length': int|null|string, 'column_default': bool|int|null|string, 'data_type': string, 'erratas': array<string, mixed>, 'is_nullable': bool|null, 'numeric_precision': int|null|string, 'numeric_scale': int|null|string, 'numeric_unsigned': bool|null, 'ordinal_position': int|null|string}>>>, 'constraint_keys'?: array<string, list<array{'column_name': string, 'constraint_name': string, 'ordinal_position': int, 'table_name': string}>>, 'constraint_references'?: array<string, list<array{'constraint_name': string, 'delete_rule': string, 'referenced_column_name': string, 'referenced_table_name': string, 'update_rule': string}>>, 'constraints'?: array<string, array<string, array<string, array{'check_clause'?: string, 'columns'?: list<string>, 'constraint_type'?: string, 'delete_rule'?: string, 'match_option'?: string, 'referenced_columns'?: list<string>, 'referenced_table_name'?: string, 'referenced_table_schema'?: string, 'update_rule'?: string}>>>, 'schemas'?: list<string>, 'table_names'?: array<string, array<string, array{'check_option'?: null|string, 'is_updatable'?: bool|null, 'table_type': string, 'view_definition'?: null|string}>>, 'triggers'?: array<string, array<string, array{'action_condition': null|string, 'action_order': string, 'action_orientation': string, 'action_reference_new_row': string, 'action_reference_new_table': null|string, 'action_reference_old_row': string, 'action_reference_old_table': null|string, 'action_statement': string, 'action_timing': string, 'created': DateTime|null, 'event_manipulation': string, 'event_object_catalog': string, 'event_object_schema': string, 'event_object_table': string}>>}`."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "invalid-property-assignment-value"
message = "Invalid type for property `$data`: expected `array{'columns'?: array<string, array<string, array<string, array{'character_maximum_length': int|null|string, 'character_octet_length': int|null|string, 'column_default': bool|int|null|string, 'data_type': string, 'erratas': array<string, mixed>, 'is_nullable': bool|null, 'numeric_precision': int|null|string, 'numeric_scale': int|null|string, 'numeric_unsigned': bool|null, 'ordinal_position': int|null|string}>>>, 'constraint_keys'?: array<string, list<array{'column_name': string, 'constraint_name': string, 'ordinal_position': int, 'table_name': string}>>, 'constraint_references'?: array<string, list<array{'constraint_name': string, 'delete_rule': string, 'referenced_column_name': string, 'referenced_table_name': string, 'update_rule': string}>>, 'constraints'?: array<string, array<string, array<string, array{'check_clause'?: string, 'columns'?: list<string>, 'constraint_type'?: string, 'delete_rule'?: string, 'match_option'?: string, 'referenced_columns'?: list<string>, 'referenced_table_name'?: string, 'referenced_table_schema'?: string, 'update_rule'?: string}>>>, 'schemas'?: list<string>, 'table_names'?: array<string, array<string, array{'check_option'?: null|string, 'is_updatable'?: bool|null, 'table_type': string, 'view_definition'?: null|string}>>, 'triggers'?: array<string, array<string, array{'action_condition': null|string, 'action_order': string, 'action_orientation': string, 'action_reference_new_row': string, 'action_reference_new_table': null|string, 'action_reference_old_row': string, 'action_reference_old_table': null|string, 'action_statement': string, 'action_timing': string, 'created': DateTime|null, 'event_manipulation': string, 'event_object_catalog': string, 'event_object_schema': string, 'event_object_table': string}>>}`, but got `array{'columns'?: array<string, array<string, array<string, array{'character_maximum_length': int|null|string, 'character_octet_length': int|null|string, 'column_default': bool|int|null|string, 'data_type': string, 'erratas': array<string, mixed>, 'is_nullable': bool|null, 'numeric_precision': int|null|string, 'numeric_scale': int|null|string, 'numeric_unsigned': bool|null, 'ordinal_position': int|null|string}>>>, 'constraint_keys'?: array<string, list<array{'column_name': string, 'constraint_name': string, 'ordinal_position': int, 'table_name': string}>>, 'constraint_names': non-empty-list<list<array<string, mixed>>>, 'constraint_references'?: array<string, list<array{'constraint_name': string, 'delete_rule': string, 'referenced_column_name': string, 'referenced_table_name': string, 'update_rule': string}>>, 'constraints'?: array<string, array<string, array<string, array{'check_clause'?: string, 'columns'?: list<string>, 'constraint_type'?: string, 'delete_rule'?: string, 'match_option'?: string, 'referenced_columns'?: list<string>, 'referenced_table_name'?: string, 'referenced_table_schema'?: string, 'update_rule'?: string}>>>, 'schemas'?: list<string>, 'table_names'?: array<string, array<string, array{'check_option'?: null|string, 'is_updatable'?: bool|null, 'table_type': string, 'view_definition'?: null|string}>>, 'triggers'?: array<string, array<string, array{'action_condition': null|string, 'action_order': string, 'action_orientation': string, 'action_reference_new_row': string, 'action_reference_new_table': null|string, 'action_reference_old_row': string, 'action_reference_old_table': null|string, 'action_statement': string, 'action_timing': string, 'created': DateTime|null, 'event_manipulation': string, 'event_object_catalog': string, 'event_object_schema': string, 'event_object_table': string}>>}`."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "invalid-property-assignment-value"
message = "Invalid type for property `$data`: expected `array{'columns'?: array<string, array<string, array<string, array{'character_maximum_length': int|null|string, 'character_octet_length': int|null|string, 'column_default': bool|int|null|string, 'data_type': string, 'erratas': array<string, mixed>, 'is_nullable': bool|null, 'numeric_precision': int|null|string, 'numeric_scale': int|null|string, 'numeric_unsigned': bool|null, 'ordinal_position': int|null|string}>>>, 'constraint_keys'?: array<string, list<array{'column_name': string, 'constraint_name': string, 'ordinal_position': int, 'table_name': string}>>, 'constraint_references'?: array<string, list<array{'constraint_name': string, 'delete_rule': string, 'referenced_column_name': string, 'referenced_table_name': string, 'update_rule': string}>>, 'constraints'?: array<string, array<string, array<string, array{'check_clause'?: string, 'columns'?: list<string>, 'constraint_type'?: string, 'delete_rule'?: string, 'match_option'?: string, 'referenced_columns'?: list<string>, 'referenced_table_name'?: string, 'referenced_table_schema'?: string, 'update_rule'?: string}>>>, 'schemas'?: list<string>, 'table_names'?: array<string, array<string, array{'check_option'?: null|string, 'is_updatable'?: bool|null, 'table_type': string, 'view_definition'?: null|string}>>, 'triggers'?: array<string, array<string, array{'action_condition': null|string, 'action_order': string, 'action_orientation': string, 'action_reference_new_row': string, 'action_reference_new_table': null|string, 'action_reference_old_row': string, 'action_reference_old_table': null|string, 'action_statement': string, 'action_timing': string, 'created': DateTime|null, 'event_manipulation': string, 'event_object_catalog': string, 'event_object_schema': string, 'event_object_table': string}>>}`, but got `array{'columns'?: array<string, array<string, array<string, array{'character_maximum_length': int|null|string, 'character_octet_length': int|null|string, 'column_default': bool|int|null|string, 'data_type': string, 'erratas': array<string, mixed>, 'is_nullable': bool|null, 'numeric_precision': int|null|string, 'numeric_scale': int|null|string, 'numeric_unsigned': bool|null, 'ordinal_position': int|null|string}>>>, 'constraint_keys'?: array<string, list<array{'column_name': string, 'constraint_name': string, 'ordinal_position': int, 'table_name': string}>>, 'constraint_references'?: array<string, list<array{'constraint_name': string, 'delete_rule': string, 'referenced_column_name': string, 'referenced_table_name': string, 'update_rule': string}>>, 'constraints': non-empty-array<string, array<string, array<string, array{'check_clause'?: string, 'columns'?: list<null|string>, 'constraint_name'?: string, 'constraint_type'?: string, 'delete_rule'?: null|string, 'match_option'?: null|string, 'referenced_columns'?: list<null|string>, 'referenced_table_name'?: null|string, 'referenced_table_schema'?: null|string, 'table_name'?: string, 'update_rule'?: null|string}>>>, 'schemas'?: list<string>, 'table_names'?: array<string, array<string, array{'check_option'?: null|string, 'is_updatable'?: bool|null, 'table_type': string, 'view_definition'?: null|string}>>, 'triggers'?: array<string, array<string, array{'action_condition': null|string, 'action_order': string, 'action_orientation': string, 'action_reference_new_row': string, 'action_reference_new_table': null|string, 'action_reference_old_row': string, 'action_reference_old_table': null|string, 'action_statement': string, 'action_timing': string, 'created': DateTime|null, 'event_manipulation': string, 'event_object_catalog': string, 'event_object_schema': string, 'event_object_table': string}>>}`."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "invalid-property-assignment-value"
message = "Invalid type for property `$data`: expected `array{'columns'?: array<string, array<string, array<string, array{'character_maximum_length': int|null|string, 'character_octet_length': int|null|string, 'column_default': bool|int|null|string, 'data_type': string, 'erratas': array<string, mixed>, 'is_nullable': bool|null, 'numeric_precision': int|null|string, 'numeric_scale': int|null|string, 'numeric_unsigned': bool|null, 'ordinal_position': int|null|string}>>>, 'constraint_keys'?: array<string, list<array{'column_name': string, 'constraint_name': string, 'ordinal_position': int, 'table_name': string}>>, 'constraint_references'?: array<string, list<array{'constraint_name': string, 'delete_rule': string, 'referenced_column_name': string, 'referenced_table_name': string, 'update_rule': string}>>, 'constraints'?: array<string, array<string, array<string, array{'check_clause'?: string, 'columns'?: list<string>, 'constraint_type'?: string, 'delete_rule'?: string, 'match_option'?: string, 'referenced_columns'?: list<string>, 'referenced_table_name'?: string, 'referenced_table_schema'?: string, 'update_rule'?: string}>>>, 'schemas'?: list<string>, 'table_names'?: array<string, array<string, array{'check_option'?: null|string, 'is_updatable'?: bool|null, 'table_type': string, 'view_definition'?: null|string}>>, 'triggers'?: array<string, array<string, array{'action_condition': null|string, 'action_order': string, 'action_orientation': string, 'action_reference_new_row': string, 'action_reference_new_table': null|string, 'action_reference_old_row': string, 'action_reference_old_table': null|string, 'action_statement': string, 'action_timing': string, 'created': DateTime|null, 'event_manipulation': string, 'event_object_catalog': string, 'event_object_schema': string, 'event_object_table': string}>>}`, but got `array{'columns'?: array<string, array<string, array<string, array{'character_maximum_length': int|null|string, 'character_octet_length': int|null|string, 'column_default': bool|int|null|string, 'data_type': string, 'erratas': array<string, mixed>, 'is_nullable': bool|null, 'numeric_precision': int|null|string, 'numeric_scale': int|null|string, 'numeric_unsigned': bool|null, 'ordinal_position': int|null|string}>>>, 'constraint_keys'?: array<string, list<array{'column_name': string, 'constraint_name': string, 'ordinal_position': int, 'table_name': string}>>, 'constraint_references'?: array<string, list<array{'constraint_name': string, 'delete_rule': string, 'referenced_column_name': string, 'referenced_table_name': string, 'update_rule': string}>>, 'constraints'?: array<string, array<string, array<string, array{'check_clause'?: string, 'columns'?: list<string>, 'constraint_type'?: string, 'delete_rule'?: string, 'match_option'?: string, 'referenced_columns'?: list<string>, 'referenced_table_name'?: string, 'referenced_table_schema'?: string, 'update_rule'?: string}>>>, 'schemas'?: list<string>, 'table_names'?: array<string, array<string, array{'check_option'?: null|string, 'is_updatable'?: bool|null, 'table_type': string, 'view_definition'?: null|string}>>, 'triggers': non-empty-array<string, array<string, array{'action_condition': null|string, 'action_order': string, 'action_orientation': string, 'action_reference_new_row': null|string, 'action_reference_new_table': null|string, 'action_reference_old_row': null|string, 'action_reference_old_table': null|string, 'action_statement': string, 'action_timing': string, 'created': DateTime|null, 'event_manipulation': string, 'event_object_catalog': string, 'event_object_schema': string, 'event_object_table': string, 'trigger_name'?: string}>>}`."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "mixed-property-type-coercion"
message = "A value with a less specific type `array{'columns'?: array<string, array<string, array<string, array{'character_maximum_length': int|null|string, 'character_octet_length': int|null|string, 'column_default': bool|int|null|string, 'data_type': string, 'erratas': array<string, mixed>, 'is_nullable': bool|null, 'numeric_precision': int|null|string, 'numeric_scale': int|null|string, 'numeric_unsigned': bool|null, 'ordinal_position': int|null|string}>>>, 'constraint_keys': non-empty-array<string, list<array<string, mixed>|array{'column_name': mixed, 'constraint_name': mixed, 'ordinal_position': mixed, 'table_name': mixed}>>, 'constraint_references'?: array<string, list<array{'constraint_name': string, 'delete_rule': string, 'referenced_column_name': string, 'referenced_table_name': string, 'update_rule': string}>>, 'constraints'?: array<string, array<string, array<string, array{'check_clause'?: string, 'columns'?: list<string>, 'constraint_type'?: string, 'delete_rule'?: string, 'match_option'?: string, 'referenced_columns'?: list<string>, 'referenced_table_name'?: string, 'referenced_table_schema'?: string, 'update_rule'?: string}>>>, 'schemas'?: list<string>, 'table_names'?: array<string, array<string, array{'check_option'?: null|string, 'is_updatable'?: bool|null, 'table_type': string, 'view_definition'?: null|string}>>, 'triggers'?: array<string, array<string, array{'action_condition': null|string, 'action_order': string, 'action_orientation': string, 'action_reference_new_row': string, 'action_reference_new_table': null|string, 'action_reference_old_row': string, 'action_reference_old_table': null|string, 'action_statement': string, 'action_timing': string, 'created': DateTime|null, 'event_manipulation': string, 'event_object_catalog': string, 'event_object_schema': string, 'event_object_table': string}>>}` is being assigned to property `$data` (array{'columns'?: array<string, array<string, array<string, array{'character_maximum_length': int|null|string, 'character_octet_length': int|null|string, 'column_default': bool|int|null|string, 'data_type': string, 'erratas': array<string, mixed>, 'is_nullable': bool|null, 'numeric_precision': int|null|string, 'numeric_scale': int|null|string, 'numeric_unsigned': bool|null, 'ordinal_position': int|null|string}>>>, 'constraint_keys'?: array<string, list<array{'column_name': string, 'constraint_name': string, 'ordinal_position': int, 'table_name': string}>>, 'constraint_references'?: array<string, list<array{'constraint_name': string, 'delete_rule': string, 'referenced_column_name': string, 'referenced_table_name': string, 'update_rule': string}>>, 'constraints'?: array<string, array<string, array<string, array{'check_clause'?: string, 'columns'?: list<string>, 'constraint_type'?: string, 'delete_rule'?: string, 'match_option'?: string, 'referenced_columns'?: list<string>, 'referenced_table_name'?: string, 'referenced_table_schema'?: string, 'update_rule'?: string}>>>, 'schemas'?: list<string>, 'table_names'?: array<string, array<string, array{'check_option'?: null|string, 'is_updatable'?: bool|null, 'table_type': string, 'view_definition'?: null|string}>>, 'triggers'?: array<string, array<string, array{'action_condition': null|string, 'action_order': string, 'action_orientation': string, 'action_reference_new_row': string, 'action_reference_new_table': null|string, 'action_reference_old_row': string, 'action_reference_old_table': null|string, 'action_statement': string, 'action_timing': string, 'created': DateTime|null, 'event_manipulation': string, 'event_object_catalog': string, 'event_object_schema': string, 'event_object_table': string}>>})."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "mixed-property-type-coercion"
message = "A value with a less specific type `array{'columns'?: array<string, array<string, array<string, array{'character_maximum_length': int|null|string, 'character_octet_length': int|null|string, 'column_default': bool|int|null|string, 'data_type': string, 'erratas': array<string, mixed>, 'is_nullable': bool|null, 'numeric_precision': int|null|string, 'numeric_scale': int|null|string, 'numeric_unsigned': bool|null, 'ordinal_position': int|null|string}>>>, 'constraint_keys'?: array<string, list<array{'column_name': string, 'constraint_name': string, 'ordinal_position': int, 'table_name': string}>>, 'constraint_references': non-empty-array<string, list<array<string, mixed>|array{'constraint_name': mixed, 'delete_rule': mixed, 'referenced_column_name': mixed, 'referenced_table_name': mixed, 'update_rule': mixed}>>, 'constraints'?: array<string, array<string, array<string, array{'check_clause'?: string, 'columns'?: list<string>, 'constraint_type'?: string, 'delete_rule'?: string, 'match_option'?: string, 'referenced_columns'?: list<string>, 'referenced_table_name'?: string, 'referenced_table_schema'?: string, 'update_rule'?: string}>>>, 'schemas'?: list<string>, 'table_names'?: array<string, array<string, array{'check_option'?: null|string, 'is_updatable'?: bool|null, 'table_type': string, 'view_definition'?: null|string}>>, 'triggers'?: array<string, array<string, array{'action_condition': null|string, 'action_order': string, 'action_orientation': string, 'action_reference_new_row': string, 'action_reference_new_table': null|string, 'action_reference_old_row': string, 'action_reference_old_table': null|string, 'action_statement': string, 'action_timing': string, 'created': DateTime|null, 'event_manipulation': string, 'event_object_catalog': string, 'event_object_schema': string, 'event_object_table': string}>>}` is being assigned to property `$data` (array{'columns'?: array<string, array<string, array<string, array{'character_maximum_length': int|null|string, 'character_octet_length': int|null|string, 'column_default': bool|int|null|string, 'data_type': string, 'erratas': array<string, mixed>, 'is_nullable': bool|null, 'numeric_precision': int|null|string, 'numeric_scale': int|null|string, 'numeric_unsigned': bool|null, 'ordinal_position': int|null|string}>>>, 'constraint_keys'?: array<string, list<array{'column_name': string, 'constraint_name': string, 'ordinal_position': int, 'table_name': string}>>, 'constraint_references'?: array<string, list<array{'constraint_name': string, 'delete_rule': string, 'referenced_column_name': string, 'referenced_table_name': string, 'update_rule': string}>>, 'constraints'?: array<string, array<string, array<string, array{'check_clause'?: string, 'columns'?: list<string>, 'constraint_type'?: string, 'delete_rule'?: string, 'match_option'?: string, 'referenced_columns'?: list<string>, 'referenced_table_name'?: string, 'referenced_table_schema'?: string, 'update_rule'?: string}>>>, 'schemas'?: list<string>, 'table_names'?: array<string, array<string, array{'check_option'?: null|string, 'is_updatable'?: bool|null, 'table_type': string, 'view_definition'?: null|string}>>, 'triggers'?: array<string, array<string, array{'action_condition': null|string, 'action_order': string, 'action_orientation': string, 'action_reference_new_row': string, 'action_reference_new_table': null|string, 'action_reference_old_row': string, 'action_reference_old_table': null|string, 'action_statement': string, 'action_timing': string, 'created': DateTime|null, 'event_manipulation': string, 'event_object_catalog': string, 'event_object_schema': string, 'event_object_table': string}>>})."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "possibly-invalid-argument"
message = "Possible argument type mismatch for argument #2 of `implode`: expected `array<array-key, Stringable|null|scalar>|null`, but possibly received `non-empty-list<void>`."
count = 7
[[issues]]
file = "src/Metadata/Source.php"
code = "possibly-null-argument"
message = "Argument #2 of function `preg_match_all` is possibly `null`, but parameter type `string` does not accept it."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "possibly-null-argument"
message = "Argument #3 of function `str_replace` is possibly `null`, but parameter type `array<array-key, string>|string` does not accept it."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "possibly-null-operand"
message = "Possibly null middle operand used in string concatenation (type `null|string`)."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "possibly-null-operand"
message = "Possibly null right operand used in string concatenation (type `null|string`)."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "possibly-undefined-int-array-index"
message = "Possibly undefined array index accessed on `list<array<array-key, string>>`."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "possibly-undefined-int-array-index"
message = "Possibly undefined array key `int(1)` accessed on `array<array-key, string>`."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "possibly-undefined-variable"
message = "Variable `$isFK` might not have been defined on all execution paths leading to this point."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "possibly-undefined-variable"
message = "Variable `$name` might not have been defined on all execution paths leading to this point."
count = 2
[[issues]]
file = "src/Metadata/Source.php"
code = "redundant-comparison"
message = "Redundant `!==` comparison: left-hand side is never identical to (always false for !==) right-hand side."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "redundant-null-coalesce"
message = "Redundant null coalesce: left-hand side is always `null`."
count = 1
[[issues]]
file = "src/Metadata/Source.php"
code = "reference-constraint-violation"
message = "Invalid assignment to by-reference parameter `$c`."
count = 7
[[issues]]
file = "src/Metadata/Source.php"
code = "unused-method"
message = "Method `loadConstraintDataNames()` is never used."
count = 1
[[issues]]
file = "src/Pdo/Connection.php"
code = "invalid-type-cast"
message = "Casting `mixed` to `array`."
count = 1
[[issues]]
file = "src/Pdo/Connection.php"
code = "less-specific-argument"
message = "Argument type mismatch for argument #1 of `strtolower`: expected `string`, but provided type `array-key` is less specific."
count = 1
[[issues]]
file = "src/Pdo/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #1 of `array_diff_key`: expected `array<('K.array_diff_key() extends array-key), ('V.array_diff_key() extends mixed)>`, but found `mixed`."
count = 1
[[issues]]
file = "src/Pdo/Connection.php"
code = "mixed-argument"
message = "Invalid argument type for argument #4 of `PDO::__construct`: expected `array<array-key, mixed>|null`, but found `mixed`."
count = 1
[[issues]]
file = "src/Pdo/Connection.php"
code = "mixed-array-assignment"
message = "Unsafe array assignment on type `mixed`."
count = 1
[[issues]]
file = "src/Pdo/Connection.php"
code = "mixed-assignment"
message = "Assigning `mixed` type to a variable may lead to unexpected behavior."
count = 3
[[issues]]
file = "src/Pdo/Driver.php"
code = "incompatible-parameter-type"
message = 'Parameter `$resource` of `PhpDb\Mysql\Pdo\Driver::createresult()` expects type `PDOStatement` but parent `PhpDb\Adapter\Driver\DriverInterface::createresult()` expects type `resource`'
count = 1
[[issues]]
file = "src/Pdo/Driver.php"
code = "invalid-property-assignment-value"
message = 'Invalid type for property `$connection`: expected `(PhpDb\Adapter\Driver\PdoConnectionInterface&PhpDb\Adapter\Driver\AbstractConnection&PhpDb\Adapter\Driver\PdoDriverAwareInterface)|PDO`, but got `(PhpDb\Adapter\Driver\PdoConnectionInterface&PhpDb\Adapter\Driver\PdoDriverAwareInterface)|PDO`.'
count = 1
[[issues]]
file = "src/Result.php"
code = "missing-constructor"
message = 'Class `PhpDb\Mysql\Result` has typed properties without default values but no constructor to initialize them.'
count = 1
[[issues]]
file = "src/Result.php"
code = "unused-property"
message = "Property `$numberOfRows` is never used."
count = 1
[[issues]]
file = "src/Sql/SelectDecorator.php"
code = "invalid-property-assignment-value"
message = "Invalid type for property `$specifications`: expected `array<array-key, array<array-key, mixed>>|array<array-key, string>`, but got `array{'limit': string('LIMIT 18446744073709551615'), ...<array-key, array<array-key, mixed>>}|array{'limit': string('LIMIT 18446744073709551615'), ...<array-key, string>}`."
count = 1
[[issues]]
file = "src/Sql/SelectDecorator.php"
code = "invalid-return-statement"
message = 'Invalid return type for function `PhpDb\Mysql\Sql\SelectDecorator::processLimit`: expected `array<array-key, string>|null`, but found `list{int|string}`.'
count = 1
[[issues]]
file = "src/Sql/SelectDecorator.php"
code = "invalid-return-statement"
message = 'Invalid return type for function `PhpDb\Mysql\Sql\SelectDecorator::processOffset`: expected `array<array-key, string>|null`, but found `list{int|string}`.'
count = 1
[[issues]]
file = "src/Sql/SelectDecorator.php"
code = "less-specific-nested-return-statement"
message = '''Returned type `list{mixed}` is less specific than the declared return type `array<array-key, string>|null` for function `PhpDb\Mysql\Sql\SelectDecorator::processLimit` due to nested 'mixed'.'''
count = 1
[[issues]]
file = "src/Sql/SelectDecorator.php"
code = "less-specific-nested-return-statement"
message = '''Returned type `list{mixed}` is less specific than the declared return type `array<array-key, string>|null` for function `PhpDb\Mysql\Sql\SelectDecorator::processOffset` due to nested 'mixed'.'''
count = 1
[[issues]]
file = "src/Sql/SelectDecorator.php"
code = "possible-method-access-on-null"
message = "Attempting to call a method on `null`."
count = 2
[[issues]]
file = "src/Sql/SelectDecorator.php"
code = "write-only-property"
message = "Property `$subject` is written to but never read."
count = 1
[[issues]]
file = "src/Statement.php"
code = "mixed-assignment"
message = "Assigning `mixed` type to a variable may lead to unexpected behavior."
count = 1
[[issues]]
file = "src/Statement.php"
code = "uninitialized-property"
message = 'Property `$driver` is not initialized in the constructor of class `PhpDb\Mysql\Statement`.'
count = 1
[[issues]]
file = "src/Statement.php"
code = "uninitialized-property"
message = 'Property `$mysqli` is not initialized in the constructor of class `PhpDb\Mysql\Statement`.'
count = 1
[[issues]]
file = "src/Statement.php"
code = "uninitialized-property"
message = 'Property `$resource` is not initialized in the constructor of class `PhpDb\Mysql\Statement`.'
count = 1