-
Notifications
You must be signed in to change notification settings - Fork 33
/
phpstan-baseline.neon
4153 lines (3462 loc) · 138 KB
/
phpstan-baseline.neon
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 method setCacheFile\(\) on an unknown class PhpCsFixer\\Config\.$#'
identifier: class.notFound
count: 1
path: .php-cs-fixer.dist.php
-
message: '#^Call to static method create\(\) on an unknown class PhpCsFixer\\Finder\.$#'
identifier: class.notFound
count: 1
path: .php-cs-fixer.dist.php
-
message: '#^Cannot call method exclude\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: .php-cs-fixer.dist.php
-
message: '#^Cannot call method ignoreDotFiles\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: .php-cs-fixer.dist.php
-
message: '#^Cannot call method in\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: .php-cs-fixer.dist.php
-
message: '#^Cannot call method setFinder\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: .php-cs-fixer.dist.php
-
message: '#^Cannot call method setRiskyAllowed\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: .php-cs-fixer.dist.php
-
message: '#^Cannot call method setRules\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: .php-cs-fixer.dist.php
-
message: '#^Instantiated class PhpCsFixer\\Config not found\.$#'
identifier: class.notFound
count: 1
path: .php-cs-fixer.dist.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\Config\:\:addFinder\(\) has parameter \$finder with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Config/Config.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\Config\:\:getFinders\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/Config.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\Config\:\:getSpecificRulesets\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/Config.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\Config\:\:getTemplateResolver\(\) should return FriendsOfTwig\\Twigcs\\TemplateResolver\\TemplateResolverInterface but returns FriendsOfTwig\\Twigcs\\TemplateResolver\\TemplateResolverInterface\|null\.$#'
identifier: return.type
count: 1
path: src/Config/Config.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\Config\:\:setSpecificRulesets\(\) has parameter \$ruleSet with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/Config.php
-
message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Config/Config.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\Config\\Config\:\:\$finders type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/Config.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\Config\\Config\:\:\$loader \(FriendsOfTwig\\Twigcs\\TemplateResolver\\TemplateResolverInterface\|null\) is never assigned null so it can be removed from the property type\.$#'
identifier: property.unusedType
count: 1
path: src/Config/Config.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\Config\\Config\:\:\$specificRulesets type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/Config.php
-
message: '#^Unsafe usage of new static\(\)\.$#'
identifier: new.static
count: 1
path: src/Config/Config.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigInterface\:\:getFinders\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/ConfigInterface.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigInterface\:\:getSpecificRuleSets\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/ConfigInterface.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigInterface\:\:setSpecificRuleSets\(\) has parameter \$ruleSet with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/ConfigInterface.php
-
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Binary operation "\." between mixed and ''/''\|''\\\\'' results in an error\.$#'
identifier: binaryOp.invalid
count: 5
path: src/Config/ConfigResolver.php
-
message: '#^Binary operation "\." between non\-falsy\-string and mixed results in an error\.$#'
identifier: binaryOp.invalid
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Call to function method_exists\(\) with FriendsOfTwig\\Twigcs\\Config\\ConfigInterface and ''getDisplay'' will always evaluate to true\.$#'
identifier: function.alreadyNarrowedType
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Cannot access offset 0 on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Cannot call method getReporter\(\) on FriendsOfTwig\\Twigcs\\Config\\ConfigInterface\|null\.$#'
identifier: method.nonObject
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Cannot call method getRuleset\(\) on FriendsOfTwig\\Twigcs\\Config\\ConfigInterface\|null\.$#'
identifier: method.nonObject
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Cannot call method getTemplateResolver\(\) on FriendsOfTwig\\Twigcs\\Config\\ConfigInterface\|null\.$#'
identifier: method.nonObject
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:__construct\(\) has parameter \$cwd with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:__construct\(\) has parameter \$options with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:computeConfigFiles\(\) should return array\<string\> but returns array\<int, mixed\>\.$#'
identifier: return.type
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:getDisplay\(\) should return string but returns mixed\.$#'
identifier: return.type
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:getFinders\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:getPath\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:getReporter\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:getRuleset\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:getSeverity\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:getSeverityLimit\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:iterableToTraversable\(\) has parameter \$iterable with no value type specified in iterable type iterable\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:iterableToTraversable\(\) is unused\.$#'
identifier: method.unused
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:iterableToTraversable\(\) return type has no value type specified in iterable type Traversable\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:resolveFinders\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:separatedContextLessInclude\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:separatedContextLessInclude\(\) has parameter \$path with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:setOption\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:setOption\(\) has parameter \$value with no type specified\.$#'
identifier: missingType.parameter
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#1 \$class of function class_exists expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#1 \$dirs of method Symfony\\Component\\Finder\\Finder\:\:in\(\) expects array\<string\>\|string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#1 \$file of method Symfony\\Component\\Filesystem\\Filesystem\:\:isAbsolutePath\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#1 \$filename of function file_exists expects string, mixed given\.$#'
identifier: argument.type
count: 2
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#1 \$filename of function is_readable expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#1 \$path of function realpath expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#1 \$path of method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:normalizePath\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#1 \$patterns of method Symfony\\Component\\Finder\\Finder\:\:notPath\(\) expects array\<string\>\|string, mixed given\.$#'
identifier: argument.type
count: 2
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#1 \$value of function count expects array\|Countable, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#2 \$array of function array_map expects array, mixed given\.$#'
identifier: argument.type
count: 2
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#'
identifier: argument.type
count: 3
path: src/Config/ConfigResolver.php
-
message: '#^Part \$this\-\>options\[''reporter\-service\-name''\] \(mixed\) of encapsed string cannot be cast to string\.$#'
identifier: encapsedStringPart.nonString
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:\$cwd has no type specified\.$#'
identifier: missingType.property
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:\$finders has no type specified\.$#'
identifier: missingType.property
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:\$options type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:\$path has no type specified\.$#'
identifier: missingType.property
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:\$specificRulesets has no type specified\.$#'
identifier: missingType.property
count: 1
path: src/Config/ConfigResolver.php
-
message: '#^Parameter \#1 \$commandName of method Symfony\\Component\\Console\\Application\:\:setDefaultCommand\(\) expects string, string\|null given\.$#'
identifier: argument.type
count: 1
path: src/Console/Application.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Console\\ContainerAwareCommand\:\:getContainer\(\) should return FriendsOfTwig\\Twigcs\\Container but returns FriendsOfTwig\\Twigcs\\Container\|null\.$#'
identifier: return.type
count: 1
path: src/Console/ContainerAwareCommand.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Console\\ContainerAwareCommand\:\:setContainer\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Console/ContainerAwareCommand.php
-
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
count: 1
path: src/Console/LintCommand.php
-
message: '#^Cannot call method getRealPath\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Console/LintCommand.php
-
message: '#^Cannot call method getSeverity\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Console/LintCommand.php
-
message: '#^Cannot call method report\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Console/LintCommand.php
-
message: '#^Cannot call method tokenize\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Console/LintCommand.php
-
message: '#^Cannot call method validate\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Console/LintCommand.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Console\\LintCommand\:\:determineExitCode\(\) has parameter \$violations with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Console/LintCommand.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Console\\LintCommand\:\:filterDisplayViolations\(\) has parameter \$violations with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Console/LintCommand.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Console\\LintCommand\:\:filterDisplayViolations\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/Console/LintCommand.php
-
message: '#^Parameter \#1 \$code of class FriendsOfTwig\\Twigcs\\TwigPort\\Source constructor expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: src/Console/LintCommand.php
-
message: '#^Parameter \#1 \$file of method FriendsOfTwig\\Twigcs\\Config\\ConfigResolver\:\:getRuleset\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/LintCommand.php
-
message: '#^Parameter \#1 \$filename of function file_get_contents expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/LintCommand.php
-
message: '#^Parameter \#1 \$iterator of function iterator_to_array expects Traversable, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/LintCommand.php
-
message: '#^Parameter \#1 \$search of function str_replace expects array\<string\>\|string, string\|false given\.$#'
identifier: argument.type
count: 1
path: src/Console/LintCommand.php
-
message: '#^Parameter \#1 \$severityLevel of method FriendsOfTwig\\Twigcs\\Console\\LintCommand\:\:determineExitCode\(\) expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/LintCommand.php
-
message: '#^Parameter \#2 \$callback of function array_filter expects \(callable\(mixed\)\: bool\)\|null, Closure\(FriendsOfTwig\\Twigcs\\Validator\\Violation\)\: bool given\.$#'
identifier: argument.type
count: 1
path: src/Console/LintCommand.php
-
message: '#^Parameter \#2 \$name of class FriendsOfTwig\\Twigcs\\TwigPort\\Source constructor expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/LintCommand.php
-
message: '#^Parameter \#2 \$severityLevel of method FriendsOfTwig\\Twigcs\\Console\\LintCommand\:\:filterDisplayViolations\(\) expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/LintCommand.php
-
message: '#^Parameter \#2 \.\.\.\$arrays of function array_merge expects array, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/LintCommand.php
-
message: '#^Parameter \#3 \$subject of function str_replace expects array\<string\>\|string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/LintCommand.php
-
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Cannot call method flatten\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Cannot call method getColumn\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Cannot call method getExpr\(\) on mixed\.$#'
identifier: method.nonObject
count: 2
path: src/Console/RegDebugCommand.php
-
message: '#^Cannot call method getOffset\(\) on mixed\.$#'
identifier: method.nonObject
count: 2
path: src/Console/RegDebugCommand.php
-
message: '#^Cannot call method getOffsetsMap\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Cannot call method getReason\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Cannot call method getTrace\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Cannot call method getType\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Parameter \#1 \$elements of method Symfony\\Component\\Console\\Style\\SymfonyStyle\:\:listing\(\) expects array, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Parameter \#1 \$filename of function file_get_contents expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Parameter \#1 \$messages of method Symfony\\Component\\Console\\Style\\SymfonyStyle\:\:writeln\(\) expects iterable\|string, mixed given\.$#'
identifier: argument.type
count: 2
path: src/Console/RegDebugCommand.php
-
message: '#^Parameter \#1 \$string of function trim expects string, string\|false given\.$#'
identifier: argument.type
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Parameter \#1 \$twigMajorVersion of method FriendsOfTwig\\Twigcs\\RegEngine\\RulesetConfigurator\:\:setTwigMajorVersion\(\) expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Parameter \#2 \$ruleset of method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\RuleChecker\:\:check\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Parameter \#2 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#'
identifier: argument.type
count: 2
path: src/Console/RegDebugCommand.php
-
message: '#^Parameter \#3 \$text of method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\RuleChecker\:\:check\(\) expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Parameter \#3 \.\.\.\$values of function sprintf expects bool\|float\|int\|string\|null, mixed given\.$#'
identifier: argument.type
count: 2
path: src/Console/RegDebugCommand.php
-
message: '#^Parameter \#4 \$offsetsMap of method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\RuleChecker\:\:check\(\) expects array, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Parameter \#5 \$offset of method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\RuleChecker\:\:check\(\) expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Console/RegDebugCommand.php
-
message: '#^Class FriendsOfTwig\\Twigcs\\Container extends generic class ArrayObject but does not specify its types\: TKey, TValue$#'
identifier: missingType.generics
count: 1
path: src/Container.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Container\:\:get\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Container.php
-
message: '#^Parameter \#1 \$callback of function call_user_func expects callable\(\)\: mixed, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Container.php
-
message: '#^Binary operation "\+" between mixed and int\<0, max\> results in an error\.$#'
identifier: binaryOp.invalid
count: 1
path: src/Lexer.php
-
message: '#^Binary operation "\+\=" between mixed and int\<0, max\> results in an error\.$#'
identifier: assignOp.invalid
count: 2
path: src/Lexer.php
-
message: '#^Binary operation "\-" between int\<\-1, max\> and mixed results in an error\.$#'
identifier: binaryOp.invalid
count: 1
path: src/Lexer.php
-
message: '#^Cannot access an offset on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/Lexer.php
-
message: '#^Cannot access offset ''lex_block'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/Lexer.php
-
message: '#^Cannot access offset ''lex_comment'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/Lexer.php
-
message: '#^Cannot access offset ''lex_var'' on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/Lexer.php
-
message: '#^Cannot use \+\+ on mixed\.$#'
identifier: preInc.type
count: 1
path: src/Lexer.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Lexer\:\:lexBlock\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Lexer.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Lexer\:\:lexComment\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Lexer.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Lexer\:\:lexExpression\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Lexer.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Lexer\:\:lexVar\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Lexer.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Lexer\:\:moveCursor\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Lexer.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\Lexer\:\:pushToken\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/Lexer.php
-
message: '#^Parameter \#1 \$pattern of function preg_match expects string, mixed given\.$#'
identifier: argument.type
count: 3
path: src/Lexer.php
-
message: '#^Parameter \#1 \$string of function substr expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Lexer.php
-
message: '#^Parameter \#2 \$lineno of class FriendsOfTwig\\Twigcs\\TwigPort\\SyntaxError constructor expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Lexer.php
-
message: '#^Parameter \#2 \$offset of function substr expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Lexer.php
-
message: '#^Parameter \#2 \$subject of function preg_match expects string, mixed given\.$#'
identifier: argument.type
count: 4
path: src/Lexer.php
-
message: '#^Parameter \#3 \$columnno of class FriendsOfTwig\\Twigcs\\TwigPort\\SyntaxError constructor expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Lexer.php
-
message: '#^Parameter \#3 \$lineno of class FriendsOfTwig\\Twigcs\\TwigPort\\Token constructor expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Lexer.php
-
message: '#^Parameter \#4 \$columnno of class FriendsOfTwig\\Twigcs\\TwigPort\\Token constructor expects int, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Lexer.php
-
message: '#^Parameter \#4 \$source of class FriendsOfTwig\\Twigcs\\TwigPort\\SyntaxError constructor expects FriendsOfTwig\\Twigcs\\TwigPort\\Source\|null, mixed given\.$#'
identifier: argument.type
count: 1
path: src/Lexer.php
-
message: '#^Parameter \#5 \$offset of function preg_match expects int, mixed given\.$#'
identifier: argument.type
count: 4
path: src/Lexer.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Capture\:\:getOffsetsMap\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Capture.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Capture\:\:getRealOffset\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/RegEngine/Checker/Capture.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Capture\:\:setOffsetsMap\(\) has parameter \$offsetsMap with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Capture.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Capture\:\:\$offsetsMap type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Capture.php
-
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
count: 3
path: src/RegEngine/Checker/Handler.php
-
message: '#^Cannot access offset 0 on mixed\.$#'
identifier: offsetAccess.nonOffsetAccessible
count: 1
path: src/RegEngine/Checker/Handler.php
-
message: '#^Cannot call method getRealOffset\(\) on mixed\.$#'
identifier: method.nonObject
count: 2
path: src/RegEngine/Checker/Handler.php
-
message: '#^Cannot call method getSource\(\) on mixed\.$#'
identifier: method.nonObject
count: 2
path: src/RegEngine/Checker/Handler.php
-
message: '#^Cannot call method getText\(\) on mixed\.$#'
identifier: method.nonObject
count: 2
path: src/RegEngine/Checker/Handler.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Handler\:\:__invoke\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/RegEngine/Checker/Handler.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Handler\:\:__invoke\(\) has parameter \$captures with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Handler.php
-
message: '#^Parameter \#1 \$string of function strlen expects string, mixed given\.$#'
identifier: argument.type
count: 2
path: src/RegEngine/Checker/Handler.php
-
message: '#^Parameter \#2 \$column of class FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\RuleError constructor expects int, mixed given\.$#'
identifier: argument.type
count: 2
path: src/RegEngine/Checker/Handler.php
-
message: '#^Parameter \#2 \$replace of function str_replace expects array\<string\>\|string, int given\.$#'
identifier: argument.type
count: 2
path: src/RegEngine/Checker/Handler.php
-
message: '#^Parameter \#3 \$capture of method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\RuleChecker\:\:subCheck\(\) expects FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Capture, mixed given\.$#'
identifier: argument.type
count: 1
path: src/RegEngine/Checker/Handler.php
-
message: '#^Parameter \#3 \$source of class FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\RuleError constructor expects FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Regex, mixed given\.$#'
identifier: argument.type
count: 2
path: src/RegEngine/Checker/Handler.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Regex\:\:__construct\(\) has parameter \$captureTypes with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Regex.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Regex\:\:getCaptureTypes\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Regex.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Regex\:\:match\(\) has no return type specified\.$#'
identifier: missingType.return
count: 1
path: src/RegEngine/Checker/Regex.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Regex\:\:setCaptureTypes\(\) has parameter \$captureTypes with no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Regex.php
-
message: '#^Parameter \#1 \$type of class FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Capture constructor expects string, mixed given\.$#'
identifier: argument.type
count: 1
path: src/RegEngine/Checker/Regex.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Regex\:\:\$captureTypes type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Regex.php
-
message: '#^Cannot call method getColumn\(\) on mixed\.$#'
identifier: method.nonObject
count: 2
path: src/RegEngine/Checker/Report.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Report\:\:getErrors\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Report.php
-
message: '#^Method FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Report\:\:getUnrecognizedExpressions\(\) return type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Report.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Report\:\:\$errors type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Report.php
-
message: '#^Property FriendsOfTwig\\Twigcs\\RegEngine\\Checker\\Report\:\:\$unrecognizedExpressions type has no value type specified in iterable type array\.$#'
identifier: missingType.iterableValue
count: 1
path: src/RegEngine/Checker/Report.php
-
message: '#^Argument of an invalid type mixed supplied for foreach, only iterables are supported\.$#'
identifier: foreach.nonIterable
count: 4
path: src/RegEngine/Checker/RuleChecker.php
-
message: '#^Binary operation "\+\=" between \(float\|int\) and mixed results in an error\.$#'
identifier: assignOp.invalid
count: 1
path: src/RegEngine/Checker/RuleChecker.php
-
message: '#^Binary operation "\." between ''\('' and mixed results in an error\.$#'
identifier: binaryOp.invalid
count: 1
path: src/RegEngine/Checker/RuleChecker.php
-
message: '#^Binary operation "\.\=" between string and mixed results in an error\.$#'
identifier: assignOp.invalid
count: 1
path: src/RegEngine/Checker/RuleChecker.php
-
message: '#^Cannot access offset 0 on mixed\.$#'