-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphpstan-baseline.neon
More file actions
2575 lines (2147 loc) · 92.1 KB
/
phpstan-baseline.neon
File metadata and controls
2575 lines (2147 loc) · 92.1 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
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
parameters:
ignoreErrors:
-
message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Adapter/Adapter.php
-
message: '#^Method PhpDb\\Adapter\\Adapter\:\:query\(\) should return PhpDb\\Adapter\\Driver\\ResultInterface\|PhpDb\\Adapter\\Driver\\StatementInterface\|PhpDb\\ResultSet\\ResultSet but returns PhpDb\\ResultSet\\ResultSetInterface\.$#'
identifier: return.type
count: 1
path: src/Adapter/Adapter.php
-
message: '#^Trait PhpDb\\Adapter\\Driver\\Feature\\DriverFeatureProviderTrait is used zero times and is not analysed\.$#'
identifier: trait.unused
count: 1
path: src/Adapter/Driver/Feature/DriverFeatureProviderTrait.php
-
message: '#^Method PhpDb\\Adapter\\Profiler\\ProfilerInterface\:\:profilerFinish\(\) invoked with 1 parameter, 0 required\.$#'
identifier: arguments.count
count: 1
path: src/Adapter/Driver/IbmDb2/Connection.php
-
message: '#^Property PhpDb\\Adapter\\Driver\\IbmDb2\\Connection\:\:\$i5 \(bool\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: src/Adapter/Driver/IbmDb2/Connection.php
-
message: '#^Strict comparison using \=\=\= between resource and true will always evaluate to false\.$#'
identifier: identical.alwaysFalse
count: 1
path: src/Adapter/Driver/IbmDb2/Connection.php
-
message: '#^Unreachable statement \- code above always terminates\.$#'
identifier: deadCode.unreachable
count: 1
path: src/Adapter/Driver/IbmDb2/Connection.php
-
message: '#^Property PhpDb\\Adapter\\Driver\\IbmDb2\\Statement\:\:\$resource \(resource\) does not accept bool\.$#'
identifier: assign.propertyType
count: 1
path: src/Adapter/Driver/IbmDb2/Statement.php
-
message: '#^Class oci8 not found\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Driver/Oci8/Connection.php
-
message: '#^Method PhpDb\\Adapter\\Profiler\\ProfilerInterface\:\:profilerFinish\(\) invoked with 1 parameter, 0 required\.$#'
identifier: arguments.count
count: 1
path: src/Adapter/Driver/Oci8/Connection.php
-
message: '#^Method PhpDb\\Adapter\\Driver\\Oci8\\Feature\\RowCounter\:\:getCountForSql\(\) should return int\|null but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/Adapter/Driver/Oci8/Feature/RowCounter.php
-
message: '#^Method PhpDb\\Adapter\\Driver\\Oci8\\Feature\\RowCounter\:\:getCountForStatement\(\) should return int\|null but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/Adapter/Driver/Oci8/Feature/RowCounter.php
-
message: '#^PHPDoc tag @var with type PhpDb\\Adapter\\Driver\\Oci8\\Feature\\RowCounter is not subtype of native type \$this\(PhpDb\\Adapter\\Driver\\Oci8\\Feature\\RowCounter\)\.$#'
identifier: varTag.nativeType
count: 1
path: src/Adapter/Driver/Oci8/Feature/RowCounter.php
-
message: '#^Call to an undefined method PhpDb\\Adapter\\Driver\\Feature\\AbstractFeature\:\:getName\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Adapter/Driver/Oci8/Oci8.php
-
message: '#^Call to an undefined method PhpDb\\Adapter\\Driver\\Feature\\AbstractFeature\:\:getRowCountClosure\(\)\.$#'
identifier: method.notFound
count: 1
path: src/Adapter/Driver/Oci8/Oci8.php
-
message: '#^Default value of the parameter \#5 \$features \(array\<int, PhpDb\\Adapter\\Driver\\Oci8\\Feature\\RowCounter\>\) of method PhpDb\\Adapter\\Driver\\Oci8\\Oci8\:\:__construct\(\) is incompatible with type string\.$#'
identifier: parameter.defaultValue
count: 1
path: src/Adapter/Driver/Oci8/Oci8.php
-
message: '#^Parameter \$connection of method PhpDb\\Adapter\\Driver\\Oci8\\Oci8\:\:__construct\(\) has invalid type oci8\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Driver/Oci8/Oci8.php
-
message: '#^Property PhpDb\\Adapter\\Driver\\Oci8\\Statement\:\:\$resource \(resource\) does not accept null\.$#'
identifier: assign.propertyType
count: 1
path: src/Adapter/Driver/Oci8/Statement.php
-
message: '#^Instanceof between PhpDb\\Adapter\\Driver\\PdoDriverAwareInterface&PhpDb\\Adapter\\Driver\\StatementInterface and PhpDb\\Adapter\\Driver\\PdoDriverAwareInterface will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 1
path: src/Adapter/Driver/Pdo/AbstractPdo.php
-
message: '#^Method PhpDb\\Adapter\\Driver\\Pdo\\AbstractPdo\:\:getResultPrototype\(\) should return PhpDb\\Adapter\\Driver\\Pdo\\Result\|null but returns PhpDb\\Adapter\\Driver\\ResultInterface\.$#'
identifier: return.type
count: 1
path: src/Adapter/Driver/Pdo/AbstractPdo.php
-
message: '#^PHPDoc tag @param references unknown parameter\: \$context$#'
identifier: parameter.notFound
count: 1
path: src/Adapter/Driver/Pdo/AbstractPdo.php
-
message: '#^PHPDoc tag @param references unknown parameter\: \$resource$#'
identifier: parameter.notFound
count: 1
path: src/Adapter/Driver/Pdo/AbstractPdo.php
-
message: '#^Method PhpDb\\Adapter\\Driver\\DriverInterface\:\:createResult\(\) invoked with 2 parameters, 1 required\.$#'
identifier: arguments.count
count: 1
path: src/Adapter/Driver/Pdo/AbstractPdoConnection.php
-
message: '#^Method PhpDb\\Adapter\\Profiler\\ProfilerInterface\:\:profilerFinish\(\) invoked with 1 parameter, 0 required\.$#'
identifier: arguments.count
count: 1
path: src/Adapter/Driver/Pdo/AbstractPdoConnection.php
-
message: '#^PHPDoc type PDO\|null of property PhpDb\\Adapter\\Driver\\Pdo\\AbstractPdoConnection\:\:\$resource is not covariant with PHPDoc type resource\|null of overridden property PhpDb\\Adapter\\Driver\\AbstractConnection\:\:\$resource\.$#'
identifier: property.phpDocType
count: 1
path: src/Adapter/Driver/Pdo/AbstractPdoConnection.php
-
message: '#^Strict comparison using \!\=\= between null and null will always evaluate to false\.$#'
identifier: notIdentical.alwaysFalse
count: 1
path: src/Adapter/Driver/Pdo/AbstractPdoConnection.php
-
message: '#^Property PhpDb\\Adapter\\Driver\\Pdo\\Result\:\:\$rowCount \(null\) does not accept int\.$#'
identifier: assign.propertyType
count: 1
path: src/Adapter/Driver/Pdo/Result.php
-
message: '#^Property PhpDb\\Adapter\\Driver\\Pdo\\Result\:\:\$rowCount \(null\) does not accept int\<0, max\>\.$#'
identifier: assign.propertyType
count: 1
path: src/Adapter/Driver/Pdo/Result.php
-
message: '#^If condition is always true\.$#'
identifier: if.alwaysTrue
count: 1
path: src/Adapter/Driver/Pdo/Statement.php
-
message: '#^Instanceof between PhpDb\\Adapter\\ParameterContainer and PhpDb\\Adapter\\ParameterContainer will always evaluate to true\.$#'
identifier: instanceof.alwaysTrue
count: 1
path: src/Adapter/Driver/Pdo/Statement.php
-
message: '#^Method PhpDb\\Adapter\\Driver\\DriverInterface\:\:createResult\(\) invoked with 2 parameters, 1 required\.$#'
identifier: arguments.count
count: 1
path: src/Adapter/Driver/Pdo/Statement.php
-
message: '#^Return type \(PDOStatement\|null\) of method PhpDb\\Adapter\\Driver\\Pdo\\Statement\:\:getResource\(\) should be compatible with return type \(resource\) of method PhpDb\\Adapter\\Driver\\StatementInterface\:\:getResource\(\)$#'
identifier: method.childReturnType
count: 1
path: src/Adapter/Driver/Pdo/Statement.php
-
message: '#^Method PhpDb\\Adapter\\Driver\\Pdo\\Feature\\OracleRowCounter\:\:getCountForSql\(\) should return int\|null but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/Adapter/Driver/Pdo/_Feature/OracleRowCounter.php
-
message: '#^Method PhpDb\\Adapter\\Driver\\Pdo\\Feature\\OracleRowCounter\:\:getCountForStatement\(\) should return int but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/Adapter/Driver/Pdo/_Feature/OracleRowCounter.php
-
message: '#^Method PhpDb\\Adapter\\Driver\\Sqlsrv\\Connection\:\:prepare\(\) should return string but returns PhpDb\\Adapter\\Driver\\Sqlsrv\\Statement\.$#'
identifier: return.type
count: 1
path: src/Adapter/Driver/Sqlsrv/Connection.php
-
message: '#^Method PhpDb\\Adapter\\Profiler\\ProfilerInterface\:\:profilerFinish\(\) invoked with 1 parameter, 0 required\.$#'
identifier: arguments.count
count: 1
path: src/Adapter/Driver/Sqlsrv/Connection.php
-
message: '#^Call to method getAttribute\(\) on an unknown class PhpDb\\Adapter\\Driver\\Pdo\\Pdo\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/Oracle.php
-
message: '#^Call to method getConnection\(\) on an unknown class PhpDb\\Adapter\\Driver\\Pdo\\Pdo\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/Oracle.php
-
message: '#^Call to method getDatabasePlatformName\(\) on an unknown class PhpDb\\Adapter\\Driver\\Pdo\\Pdo\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/Oracle.php
-
message: '#^Class PhpDb\\Adapter\\Driver\\Pdo\\Pdo not found\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/Oracle.php
-
message: '#^Class oci8 not found\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/Oracle.php
-
message: '#^Method PhpDb\\Adapter\\Platform\\Oracle\:\:getDriver\(\) has invalid return type PhpDb\\Adapter\\Driver\\Pdo\\Pdo\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/Oracle.php
-
message: '#^Parameter \$driver of method PhpDb\\Adapter\\Platform\\Oracle\:\:__construct\(\) has invalid type PhpDb\\Adapter\\Driver\\Pdo\\Pdo\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/Oracle.php
-
message: '#^Parameter \$driver of method PhpDb\\Adapter\\Platform\\Oracle\:\:setDriver\(\) has invalid type PhpDb\\Adapter\\Driver\\Pdo\\Pdo\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/Oracle.php
-
message: '#^Property PhpDb\\Adapter\\Platform\\Oracle\:\:\$resource has unknown class PhpDb\\Adapter\\Driver\\Pdo\\Pdo as its type\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/Oracle.php
-
message: '#^Call to method getDatabasePlatformName\(\) on an unknown class PhpDb\\Adapter\\Driver\\Pdo\\Pdo\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/SqlServer.php
-
message: '#^Class PhpDb\\Adapter\\Driver\\Pdo\\Pdo not found\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/SqlServer.php
-
message: '#^Parameter \$driver of method PhpDb\\Adapter\\Platform\\SqlServer\:\:__construct\(\) has invalid type PhpDb\\Adapter\\Driver\\Pdo\\Pdo\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/SqlServer.php
-
message: '#^Parameter \$driver of method PhpDb\\Adapter\\Platform\\SqlServer\:\:setDriver\(\) has invalid type PhpDb\\Adapter\\Driver\\Pdo\\Pdo\.$#'
identifier: class.notFound
count: 1
path: src/Adapter/Platform/SqlServer.php
-
message: '#^Property PhpDb\\Adapter\\Profiler\\Profiler\:\:\$currentIndex \(null\) does not accept default value of type int\.$#'
identifier: property.defaultValue
count: 1
path: src/Adapter/Profiler/Profiler.php
-
message: '#^Property PhpDb\\Adapter\\Profiler\\Profiler\:\:\$currentIndex \(null\) does not accept int\.$#'
identifier: assign.propertyType
count: 1
path: src/Adapter/Profiler/Profiler.php
-
message: '#^PHPDoc tag @var for property PhpDb\\Metadata\\Source\\AbstractSource\:\:\$data with type mixed is not subtype of native type array\.$#'
identifier: property.phpDocType
count: 1
path: src/Metadata/Source/AbstractSource.php
-
message: '#^Instantiated class PhpDb\\Metadata\\Source\\MysqlMetadata not found\.$#'
identifier: class.notFound
count: 1
path: src/Metadata/Source/Factory.php
-
message: '#^Instantiated class PhpDb\\Metadata\\Source\\PostgresqlMetadata not found\.$#'
identifier: class.notFound
count: 1
path: src/Metadata/Source/Factory.php
-
message: '#^Instantiated class PhpDb\\Metadata\\Source\\SqliteMetadata not found\.$#'
identifier: class.notFound
count: 1
path: src/Metadata/Source/Factory.php
-
message: '#^Method PhpDb\\Metadata\\Source\\Factory\:\:createSourceFromAdapter\(\) should return PhpDb\\Metadata\\MetadataInterface but returns PhpDb\\Metadata\\Source\\MysqlMetadata\.$#'
identifier: return.type
count: 1
path: src/Metadata/Source/Factory.php
-
message: '#^Method PhpDb\\Metadata\\Source\\Factory\:\:createSourceFromAdapter\(\) should return PhpDb\\Metadata\\MetadataInterface but returns PhpDb\\Metadata\\Source\\PostgresqlMetadata\.$#'
identifier: return.type
count: 1
path: src/Metadata/Source/Factory.php
-
message: '#^Method PhpDb\\Metadata\\Source\\Factory\:\:createSourceFromAdapter\(\) should return PhpDb\\Metadata\\MetadataInterface but returns PhpDb\\Metadata\\Source\\SqliteMetadata\.$#'
identifier: return.type
count: 1
path: src/Metadata/Source/Factory.php
-
message: '#^Method PhpDb\\Metadata\\Source\\SqlServerMetadata\:\:loadColumnData\(\) should return string but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/Metadata/Source/SqlServerMetadata.php
-
message: '#^Method PhpDb\\Metadata\\Source\\SqlServerMetadata\:\:loadColumnData\(\) should return string but return statement is missing\.$#'
identifier: return.missing
count: 1
path: src/Metadata/Source/SqlServerMetadata.php
-
message: '#^Call to function is_object\(\) with null will always evaluate to false\.$#'
identifier: function.impossibleType
count: 1
path: src/ResultSet/AbstractResultSet.php
-
message: '#^Call to function method_exists\(\) with \*NEVER\* and ''getArrayCopy'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/ResultSet/AbstractResultSet.php
-
message: '#^Call to function method_exists\(\) with \*NEVER\* and ''toArray'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 2
path: src/ResultSet/AbstractResultSet.php
-
message: '#^Property PhpDb\\ResultSet\\AbstractResultSet\:\:\$dataSource \(Iterator\|IteratorAggregate\) does not accept Traversable\<mixed, mixed\>\.$#'
identifier: assign.propertyType
count: 1
path: src/ResultSet/AbstractResultSet.php
-
message: '#^Call to method extract\(\) on an unknown class Laminas\\Hydrator\\HydratorInterface\.$#'
identifier: class.notFound
count: 1
path: src/ResultSet/HydratingResultSet.php
-
message: '#^Call to method hydrate\(\) on an unknown class Laminas\\Hydrator\\HydratorInterface\.$#'
identifier: class.notFound
count: 1
path: src/ResultSet/HydratingResultSet.php
-
message: '#^Class Laminas\\Hydrator\\ArraySerializable not found\.$#'
identifier: class.notFound
count: 1
path: src/ResultSet/HydratingResultSet.php
-
message: '#^Instantiated class Laminas\\Hydrator\\ArraySerializable not found\.$#'
identifier: class.notFound
count: 1
path: src/ResultSet/HydratingResultSet.php
-
message: '#^Instantiated class Laminas\\Hydrator\\ArraySerializableHydrator not found\.$#'
identifier: class.notFound
count: 1
path: src/ResultSet/HydratingResultSet.php
-
message: '#^Method PhpDb\\ResultSet\\HydratingResultSet\:\:getHydrator\(\) has invalid return type Laminas\\Hydrator\\HydratorInterface\.$#'
identifier: class.notFound
count: 1
path: src/ResultSet/HydratingResultSet.php
-
message: '#^Parameter \$hydrator of method PhpDb\\ResultSet\\HydratingResultSet\:\:__construct\(\) has invalid type Laminas\\Hydrator\\HydratorInterface\.$#'
identifier: class.notFound
count: 1
path: src/ResultSet/HydratingResultSet.php
-
message: '#^Parameter \$hydrator of method PhpDb\\ResultSet\\HydratingResultSet\:\:setHydrator\(\) has invalid type Laminas\\Hydrator\\HydratorInterface\.$#'
identifier: class.notFound
count: 1
path: src/ResultSet/HydratingResultSet.php
-
message: '#^Property PhpDb\\ResultSet\\HydratingResultSet\:\:\$hydrator has unknown class Laminas\\Hydrator\\HydratorInterface as its type\.$#'
identifier: class.notFound
count: 1
path: src/ResultSet/HydratingResultSet.php
-
message: '#^Call to an undefined method PhpDb\\Adapter\\StatementContainerInterface\:\:execute\(\)\.$#'
identifier: method.notFound
count: 4
path: src/RowGateway/AbstractRowGateway.php
-
message: '#^Property PhpDb\\RowGateway\\AbstractRowGateway\:\:\$primaryKeyData \(array\) does not accept null\.$#'
identifier: assign.propertyType
count: 2
path: src/RowGateway/AbstractRowGateway.php
-
message: '#^Access to an undefined property \$this\(PhpDb\\Sql\\AbstractSql\)&PhpDb\\Sql\\Platform\\PlatformDecoratorInterface\:\:\$subject\.$#'
identifier: property.notFound
count: 1
path: src/Sql/AbstractSql.php
-
message: '#^Call to function is_string\(\) with string will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Sql/AbstractSql.php
-
message: '#^Cannot assign offset ''subselectCount'' to string\.$#'
identifier: offsetAssign.dimType
count: 1
path: src/Sql/AbstractSql.php
-
message: '#^Method PhpDb\\Sql\\AbstractSql\:\:processJoin\(\) should return array\<string\>\|null but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/Sql/AbstractSql.php
-
message: '#^Method PhpDb\\Sql\\AbstractSql\:\:processJoin\(\) should return array\<string\>\|null but returns array\<int, array\<list\<string\>\>\>\.$#'
identifier: return.type
count: 1
path: src/Sql/AbstractSql.php
-
message: '#^Offset ''paramPrefix'' does not exist on string\.$#'
identifier: offsetAccess.notFound
count: 2
path: src/Sql/AbstractSql.php
-
message: '#^Offset ''subselectCount'' does not exist on string\.$#'
identifier: offsetAccess.notFound
count: 2
path: src/Sql/AbstractSql.php
-
message: '#^PHPDoc tag @param for parameter \$joins with type array\<PhpDb\\Sql\\Join\> is incompatible with native type PhpDb\\Sql\\Join\.$#'
identifier: parameter.phpDocType
count: 1
path: src/Sql/AbstractSql.php
-
message: '#^Property PhpDb\\Sql\\AbstractSql\:\:\$processInfo \(string\) does not accept default value of type array\<string, int\|string\>\.$#'
identifier: property.defaultValue
count: 1
path: src/Sql/AbstractSql.php
-
message: '#^Strict comparison using \!\=\= between mixed and null will always evaluate to true\.$#'
identifier: notIdentical.alwaysTrue
count: 1
path: src/Sql/AbstractSql.php
-
message: '#^Variable \$paramSpecs might not be defined\.$#'
identifier: variable.undefined
count: 1
path: src/Sql/AbstractSql.php
-
message: '#^Binary operation "\." between '' '' and PhpDb\\Sql\\Select results in an error\.$#'
identifier: binaryOp.invalid
count: 1
path: src/Sql/Combine.php
-
message: '#^Method PhpDb\\Sql\\Combine\:\:buildSqlString\(\) should return string but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/Sql/Combine.php
-
message: '#^Method PhpDb\\Sql\\Ddl\\AlterTable\:\:processAddColumns\(\) should return array\<string\> but returns array\<int, list\<string\>\>\.$#'
identifier: return.type
count: 1
path: src/Sql/Ddl/AlterTable.php
-
message: '#^Method PhpDb\\Sql\\Ddl\\AlterTable\:\:processAddConstraints\(\) should return array\<string\> but returns array\<int, list\<string\>\>\.$#'
identifier: return.type
count: 1
path: src/Sql/Ddl/AlterTable.php
-
message: '#^Method PhpDb\\Sql\\Ddl\\AlterTable\:\:processChangeColumns\(\) should return array\<string\> but returns array\<int, list\<array\<int, string\>\>\>\.$#'
identifier: return.type
count: 1
path: src/Sql/Ddl/AlterTable.php
-
message: '#^Method PhpDb\\Sql\\Ddl\\AlterTable\:\:processDropColumns\(\) should return array\<string\> but returns array\<int, list\<string\>\>\.$#'
identifier: return.type
count: 1
path: src/Sql/Ddl/AlterTable.php
-
message: '#^Method PhpDb\\Sql\\Ddl\\AlterTable\:\:processDropConstraints\(\) should return array\<string\> but returns array\<int, list\<string\>\>\.$#'
identifier: return.type
count: 1
path: src/Sql/Ddl/AlterTable.php
-
message: '#^Method PhpDb\\Sql\\Ddl\\AlterTable\:\:processDropIndexes\(\) should return array\<string\> but returns array\<int, list\<string\>\>\.$#'
identifier: return.type
count: 1
path: src/Sql/Ddl/AlterTable.php
-
message: '#^PHPDoc type array of property PhpDb\\Sql\\Ddl\\AlterTable\:\:\$specifications is not covariant with PHPDoc type array\<array\|string\> of overridden property PhpDb\\Sql\\AbstractSql\:\:\$specifications\.$#'
identifier: property.phpDocType
count: 1
path: src/Sql/Ddl/AlterTable.php
-
message: '#^Method PhpDb\\Sql\\Ddl\\Column\\AbstractPrecisionColumn\:\:getLengthExpression\(\) should return string but returns int\.$#'
identifier: return.type
count: 1
path: src/Sql/Ddl/Column/AbstractPrecisionColumn.php
-
message: '#^Class PhpDb\\Sql\\Ddl\\Column\\Boolean referenced with incorrect case\: PhpDb\\Sql\\Ddl\\Column\\boolean\.$#'
identifier: class.nameCase
count: 1
path: src/Sql/Ddl/Column/Column.php
-
message: '#^Method PhpDb\\Sql\\Ddl\\CreateTable\:\:processColumns\(\) should return array\<array\<string\>\>\|null but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/Sql/Ddl/CreateTable.php
-
message: '#^Method PhpDb\\Sql\\Ddl\\CreateTable\:\:processCombinedby\(\) should return array\|string but return statement is missing\.$#'
identifier: return.missing
count: 1
path: src/Sql/Ddl/CreateTable.php
-
message: '#^Method PhpDb\\Sql\\Ddl\\CreateTable\:\:processConstraints\(\) should return array\<array\<string\>\>\|null but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/Sql/Ddl/CreateTable.php
-
message: '#^PHPDoc type array of property PhpDb\\Sql\\Ddl\\DropTable\:\:\$specifications is not covariant with PHPDoc type array\<array\|string\> of overridden property PhpDb\\Sql\\AbstractSql\:\:\$specifications\.$#'
identifier: property.phpDocType
count: 1
path: src/Sql/Ddl/DropTable.php
-
message: '#^Method PhpDb\\Sql\\Delete\:\:__get\(\) should return PhpDb\\Sql\\Where\|null but return statement is missing\.$#'
identifier: return.missing
count: 1
path: src/Sql/Delete.php
-
message: '#^Method PhpDb\\Sql\\Delete\:\:processWhere\(\) should return string\|null but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/Sql/Delete.php
-
message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Sql/Expression.php
-
message: '#^Method PhpDb\\Sql\\Insert\:\:__set\(\) with return type void returns \$this\(PhpDb\\Sql\\Insert\) but should not return anything\.$#'
identifier: return.void
count: 1
path: src/Sql/Insert.php
-
message: '#^PHPDoc type array of property PhpDb\\Sql\\InsertIgnore\:\:\$specifications is not covariant with PHPDoc type array\<array\|string\> of overridden property PhpDb\\Sql\\Insert\:\:\$specifications\.$#'
identifier: property.phpDocType
count: 1
path: src/Sql/InsertIgnore.php
-
message: '#^Instanceof between PhpDb\\Sql\\PreparableSqlInterface\|PhpDb\\Sql\\SqlInterface and mixed results in an error\.$#'
identifier: instanceof.invalidExprType
count: 1
path: src/Sql/Platform/AbstractPlatform.php
-
message: '#^Method PhpDb\\Sql\\Platform\\AbstractPlatform\:\:prepareStatement\(\) with return type void returns PhpDb\\Adapter\\StatementContainerInterface but should not return anything\.$#'
identifier: return.void
count: 1
path: src/Sql/Platform/AbstractPlatform.php
-
message: '#^Method PhpDb\\Sql\\Platform\\IbmDb2\\SelectDecorator\:\:setSubject\(\) should return \$this\(PhpDb\\Sql\\Platform\\IbmDb2\\SelectDecorator\) but return statement is missing\.$#'
identifier: return.missing
count: 1
path: src/Sql/Platform/IbmDb2/SelectDecorator.php
-
message: '#^Offset ''subselectCount'' does not exist on string\.$#'
identifier: offsetAccess.notFound
count: 1
path: src/Sql/Platform/Oracle/SelectDecorator.php
-
message: '#^Return type \(void\) of method PhpDb\\Sql\\Platform\\Oracle\\SelectDecorator\:\:setSubject\(\) should be compatible with return type \(\$this\(PhpDb\\Sql\\Platform\\PlatformDecoratorInterface\)\) of method PhpDb\\Sql\\Platform\\PlatformDecoratorInterface\:\:setSubject\(\)$#'
identifier: method.childReturnType
count: 1
path: src/Sql/Platform/Oracle/SelectDecorator.php
-
message: '#^Argument of an invalid type PhpDb\\Sql\\Platform\\PlatformDecoratorInterface supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
count: 1
path: src/Sql/Platform/Platform.php
-
message: '#^Cannot call method setSubject\(\) on class\-string\|object\.$#'
identifier: method.nonObject
count: 1
path: src/Sql/Platform/Platform.php
-
message: '#^Method PhpDb\\Sql\\Platform\\Platform\:\:getDecorators\(\) should return array\<PhpDb\\Sql\\Platform\\PlatformDecoratorInterface\> but returns PhpDb\\Sql\\Platform\\PlatformDecoratorInterface\.$#'
identifier: return.type
count: 1
path: src/Sql/Platform/Platform.php
-
message: '#^Method PhpDb\\Sql\\Platform\\Platform\:\:prepareStatement\(\) with return type void returns PhpDb\\Adapter\\StatementContainerInterface but should not return anything\.$#'
identifier: return.void
count: 1
path: src/Sql/Platform/Platform.php
-
message: '#^Method PhpDb\\Sql\\Platform\\SqlServer\\SelectDecorator\:\:setSubject\(\) should return \$this\(PhpDb\\Sql\\Platform\\SqlServer\\SelectDecorator\) but return statement is missing\.$#'
identifier: return.missing
count: 1
path: src/Sql/Platform/SqlServer/SelectDecorator.php
-
message: '#^Property PhpDb\\Sql\\Predicate\\IsNull\:\:\$identifier has unknown class PhpDb\\Sql\\Predicate\\nuill as its type\.$#'
identifier: class.notFound
count: 1
path: src/Sql/Predicate/IsNull.php
-
message: '#^Method PhpDb\\Sql\\Predicate\\Predicate\:\:__get\(\) should return \$this\(PhpDb\\Sql\\Predicate\\Predicate\) but returns PhpDb\\Sql\\Predicate\\Predicate\.$#'
identifier: return.type
count: 2
path: src/Sql/Predicate/Predicate.php
-
message: '#^Cannot call method addPredicates\(\) on array\|string\.$#'
identifier: method.nonObject
count: 1
path: src/Sql/Select.php
-
message: '#^Cannot call method count\(\) on array\|string\.$#'
identifier: method.nonObject
count: 1
path: src/Sql/Select.php
-
message: '#^Cannot call method getJoins\(\) on array\<PhpDb\\Sql\\Join\>\.$#'
identifier: method.nonObject
count: 1
path: src/Sql/Select.php
-
message: '#^Cannot call method join\(\) on array\<PhpDb\\Sql\\Join\>\.$#'
identifier: method.nonObject
count: 1
path: src/Sql/Select.php
-
message: '#^Cannot clone array\<PhpDb\\Sql\\Join\>\.$#'
identifier: clone.nonObject
count: 1
path: src/Sql/Select.php
-
message: '#^Cannot clone array\|string\.$#'
identifier: clone.nonObject
count: 1
path: src/Sql/Select.php
-
message: '#^Offset ''paramPrefix'' does not exist on string\.$#'
identifier: offsetAccess.notFound
count: 2
path: src/Sql/Select.php
-
message: '#^Property PhpDb\\Sql\\Select\:\:\$having \(array\|string\|null\) does not accept PhpDb\\Sql\\Having\.$#'
identifier: assign.propertyType
count: 3
path: src/Sql/Select.php
-
message: '#^Property PhpDb\\Sql\\Select\:\:\$joins \(array\<PhpDb\\Sql\\Join\>\) does not accept PhpDb\\Sql\\Join\.$#'
identifier: assign.propertyType
count: 2
path: src/Sql/Select.php
-
message: '#^Return type \(array\) of method PhpDb\\Sql\\Select\:\:resolveTable\(\) should be compatible with return type \(string\) of method PhpDb\\Sql\\AbstractSql\:\:resolveTable\(\)$#'
identifier: method.childReturnType
count: 1
path: src/Sql/Select.php
-
message: '#^Method PhpDb\\Sql\\Sql\:\:setTable\(\) has PhpDb\\Sql\\Exception\\InvalidArgumentException in PHPDoc @throws tag but it''s not thrown\.$#'
identifier: throws.unusedType
count: 1
path: src/Sql/Sql.php
-
message: '#^Result of method PhpDb\\Sql\\Platform\\Platform\:\:prepareStatement\(\) \(void\) is used\.$#'
identifier: method.void
count: 1
path: src/Sql/Sql.php
-
message: '#^Call to an undefined method PhpDb\\Adapter\\StatementContainerInterface\:\:execute\(\)\.$#'
identifier: method.notFound
count: 4
path: src/TableGateway/AbstractTableGateway.php
-
message: '#^Method PhpDb\\TableGateway\\AbstractTableGateway\:\:__set\(\) with return type void returns mixed but should not return anything\.$#'
identifier: return.void
count: 1
path: src/TableGateway/AbstractTableGateway.php
-
message: '#^Method PhpDb\\TableGateway\\AbstractTableGateway\:\:initialize\(\) should return null but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/TableGateway/AbstractTableGateway.php
-
message: '#^Method PhpDb\\TableGateway\\AbstractTableGateway\:\:initialize\(\) should return null but return statement is missing\.$#'
identifier: return.missing
count: 1
path: src/TableGateway/AbstractTableGateway.php
-
message: '#^Property PhpDb\\TableGateway\\AbstractTableGateway\:\:\$resultSetPrototype \(PhpDb\\ResultSet\\ResultSetInterface\) in isset\(\) is not nullable\.$#'
identifier: isset.property
count: 1
path: src/TableGateway/AbstractTableGateway.php
-
message: '#^Method PhpDb\\TableGateway\\Feature\\EventFeature\\TableGatewayEvent\:\:getName\(\) should return string but returns null\.$#'
identifier: return.type
count: 1
path: src/TableGateway/Feature/EventFeature/TableGatewayEvent.php
-
message: '#^Parameter \#1 \$params \(string\) of method PhpDb\\TableGateway\\Feature\\EventFeature\\TableGatewayEvent\:\:setParams\(\) should be compatible with parameter \$params \(array\|object\) of method Laminas\\EventManager\\EventInterface\<object\|string\|null,array\|object\>\:\:setParams\(\)$#'
identifier: method.childParameterType
count: 1
path: src/TableGateway/Feature/EventFeature/TableGatewayEvent.php
-
message: '#^Property PhpDb\\TableGateway\\Feature\\EventFeature\\TableGatewayEvent\:\:\$name \(null\) does not accept string\.$#'
identifier: assign.propertyType
count: 1
path: src/TableGateway/Feature/EventFeature/TableGatewayEvent.php
-
message: '#^Property PhpDb\\TableGateway\\Feature\\EventFeature\\TableGatewayEvent\:\:\$params \(array\|ArrayAccess\) does not accept string\.$#'
identifier: assign.propertyType
count: 1
path: src/TableGateway/Feature/EventFeature/TableGatewayEvent.php
-
message: '#^Self\-out type static\(Laminas\\EventManager\\EventInterface\<TTarget of object\|string\|null \(class Laminas\\EventManager\\EventInterface, argument\), TParams of array\|object \(class Laminas\\EventManager\\EventInterface, argument\)\>\) of method PhpDb\\TableGateway\\Feature\\EventFeature\\TableGatewayEvent\:\:setParams is not subtype of PhpDb\\TableGateway\\Feature\\EventFeature\\TableGatewayEvent\.$#'
identifier: selfOut.type
count: 1
path: src/TableGateway/Feature/EventFeature/TableGatewayEvent.php
-
message: '#^Self\-out type static\(Laminas\\EventManager\\EventInterface\<TTarget of object\|string\|null \(class Laminas\\EventManager\\EventInterface, argument\), TParams of array\|object \(class Laminas\\EventManager\\EventInterface, argument\)\>\) of method PhpDb\\TableGateway\\Feature\\EventFeature\\TableGatewayEvent\:\:setTarget is not subtype of PhpDb\\TableGateway\\Feature\\EventFeature\\TableGatewayEvent\.$#'
identifier: selfOut.type
count: 1
path: src/TableGateway/Feature/EventFeature/TableGatewayEvent.php
-
message: '#^Class PhpDb\\Sql\\Sql constructor invoked with 3 parameters, 1\-2 required\.$#'
identifier: arguments.count
count: 1
path: src/TableGateway/Feature/MasterSlaveFeature.php
-
message: '#^Call to an undefined method PhpDb\\Adapter\\AdapterInterface\:\:createStatement\(\)\.$#'
identifier: method.notFound
count: 2
path: src/TableGateway/Feature/SequenceFeature.php
-
message: '#^Method PhpDb\\TableGateway\\Feature\\SequenceFeature\:\:lastSequenceId\(\) should return int but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/TableGateway/Feature/SequenceFeature.php
-
message: '#^Method PhpDb\\TableGateway\\Feature\\SequenceFeature\:\:nextSequenceId\(\) should return int but empty return statement found\.$#'
identifier: return.empty
count: 1
path: src/TableGateway/Feature/SequenceFeature.php
-
message: '#^Class PhpDb\\Adapter\\Adapter constructor invoked with 1 parameter, 3\-4 required\.$#'
identifier: arguments.count
count: 1
path: test/integration/Adapter/Driver/Pdo/Postgresql/AdapterTest.php
-
message: '#^Class PhpDb\\Adapter\\Adapter constructor invoked with 1 parameter, 3\-4 required\.$#'
identifier: arguments.count
count: 1
path: test/integration/Adapter/Driver/Pdo/Postgresql/TableGatewayTest.php
-
message: '#^Call to method quoteValue\(\) on an unknown class PhpDb\\Adapter\\Platform\\Postgresql\.$#'
identifier: class.notFound
count: 4
path: test/integration/Adapter/Platform/PostgresqlTest.php
-
message: '#^Instantiated class PhpDb\\Adapter\\Driver\\Pdo\\Connection not found\.$#'
identifier: class.notFound
count: 1
path: test/integration/Adapter/Platform/PostgresqlTest.php
-
message: '#^Instantiated class PhpDb\\Adapter\\Driver\\Pdo\\Pdo not found\.$#'
identifier: class.notFound
count: 1
path: test/integration/Adapter/Platform/PostgresqlTest.php
-
message: '#^Instantiated class PhpDb\\Adapter\\Driver\\Pgsql\\Connection not found\.$#'
identifier: class.notFound
count: 1
path: test/integration/Adapter/Platform/PostgresqlTest.php
-
message: '#^Instantiated class PhpDb\\Adapter\\Driver\\Pgsql\\Pgsql not found\.$#'
identifier: class.notFound
count: 1
path: test/integration/Adapter/Platform/PostgresqlTest.php
-
message: '#^Instantiated class PhpDb\\Adapter\\Platform\\Postgresql not found\.$#'
identifier: class.notFound
count: 4
path: test/integration/Adapter/Platform/PostgresqlTest.php
-
message: '#^Call to method quoteValue\(\) on an unknown class PhpDb\\Adapter\\Platform\\Sqlite\.$#'
identifier: class.notFound
count: 2
path: test/integration/Adapter/Platform/SqliteTest.php
-
message: '#^Instantiated class PhpDb\\Adapter\\Driver\\Pdo\\Connection not found\.$#'
identifier: class.notFound
count: 1
path: test/integration/Adapter/Platform/SqliteTest.php
-
message: '#^Instantiated class PhpDb\\Adapter\\Driver\\Pdo\\Pdo not found\.$#'
identifier: class.notFound
count: 1
path: test/integration/Adapter/Platform/SqliteTest.php
-
message: '#^Instantiated class PhpDb\\Adapter\\Platform\\Sqlite not found\.$#'
identifier: class.notFound
count: 2
path: test/integration/Adapter/Platform/SqliteTest.php
-
message: '#^Property PhpDbIntegrationTest\\Platform\\PgsqlFixtureLoader\:\:\$pdo \(PDO\) does not accept null\.$#'
identifier: assign.propertyType
count: 1
path: test/integration/Platform/PgsqlFixtureLoader.php
-
message: '#^Property PhpDbIntegrationTest\\Platform\\SqlServerFixtureLoader\:\:\$connection \(resource\) does not accept null\.$#'
identifier: assign.propertyType
count: 1
path: test/integration/Platform/SqlServerFixtureLoader.php
-
message: '#^Call to method configureServiceManager\(\) on an unknown class Laminas\\ServiceManager\\Config\.$#'
identifier: class.notFound
count: 1
path: test/unit/Adapter/AdapterAbstractServiceFactoryTest.php
-
message: '#^Class PhpDb\\Adapter\\AdapterAbstractServiceFactory not found\.$#'
identifier: class.notFound
count: 1
path: test/unit/Adapter/AdapterAbstractServiceFactoryTest.php
-
message: '#^Instantiated class Laminas\\ServiceManager\\Config not found\.$#'
identifier: class.notFound
count: 1
path: test/unit/Adapter/AdapterAbstractServiceFactoryTest.php
-
message: '#^Class PhpDb\\Adapter\\Adapter constructor invoked with 2 parameters, 3\-4 required\.$#'
identifier: arguments.count
count: 1
path: test/unit/Adapter/AdapterAwareTraitTest.php
-
message: '#^Class PhpDb\\Adapter\\Adapter constructor invoked with 1 parameter, 3\-4 required\.$#'
identifier: arguments.count
count: 3
path: test/unit/Adapter/AdapterServiceDelegatorTest.php
-
message: '#^Class PhpDb\\Adapter\\AdapterServiceDelegator not found\.$#'
identifier: class.notFound
count: 2
path: test/unit/Adapter/AdapterServiceDelegatorTest.php
-
message: '#^Instantiated class PhpDb\\Adapter\\AdapterServiceDelegator not found\.$#'
identifier: class.notFound
count: 5
path: test/unit/Adapter/AdapterServiceDelegatorTest.php
-
message: '#^Invoking callable on an unknown class PhpDb\\Adapter\\AdapterServiceDelegator\.$#'