@@ -40,7 +40,9 @@ public function dataFileAsserts(): iterable
40
40
41
41
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/generic-generalization.php ' );
42
42
43
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/named-arguments.php ' );
43
+ if (PHP_VERSION_ID >= 80000 ) {
44
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/named-arguments.php ' );
45
+ }
44
46
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/date.php ' );
45
47
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/instanceof.php ' );
46
48
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/integer-range-types.php ' );
@@ -121,7 +123,11 @@ public function dataFileAsserts(): iterable
121
123
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-3269.php ' );
122
124
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-5086.php ' );
123
125
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/assign-nested-arrays.php ' );
124
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-3276.php ' );
126
+
127
+ if (PHP_VERSION_ID >= 70400 ) {
128
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-3276.php ' );
129
+ }
130
+
125
131
yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Methods/data/bug-6856.php ' );
126
132
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/shadowed-trait-methods.php ' );
127
133
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/const-in-functions.php ' );
@@ -144,11 +150,11 @@ public function dataFileAsserts(): iterable
144
150
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/graphics-draw-return-types.php ' );
145
151
}
146
152
147
- yield from $ this -> gatherAssertTypes ( __DIR__ . ' /../Reflection/data/unionTypes.php ' );
148
-
149
- yield from $ this ->gatherAssertTypes (__DIR__ . '/../Reflection/data/mixedType.php ' );
150
-
151
- yield from $ this -> gatherAssertTypes ( __DIR__ . ' /../Reflection/data/staticReturnType.php ' );
153
+ if ( PHP_VERSION_ID >= 80000 ) {
154
+ yield from $ this -> gatherAssertTypes ( __DIR__ . ' /../Reflection/data/unionTypes.php ' );
155
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/../Reflection/data/mixedType.php ' );
156
+ yield from $ this -> gatherAssertTypes ( __DIR__ . ' /../Reflection/data/staticReturnType.php ' );
157
+ }
152
158
153
159
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/minmax.php ' );
154
160
if (PHP_VERSION_ID < 80000 ) {
@@ -183,8 +189,14 @@ public function dataFileAsserts(): iterable
183
189
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-1014.php ' );
184
190
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-pr-339.php ' );
185
191
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/pow.php ' );
186
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/throw-expr.php ' );
187
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-5351.php ' );
192
+
193
+ if (PHP_VERSION_ID >= 80000 ) {
194
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/throw-expr.php ' );
195
+ }
196
+
197
+ if (PHP_VERSION_ID >= 80000 ) {
198
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-5351.php ' );
199
+ }
188
200
189
201
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/non-empty-array.php ' );
190
202
@@ -237,7 +249,9 @@ public function dataFileAsserts(): iterable
237
249
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-9084.php ' );
238
250
}
239
251
240
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/promoted-properties-types.php ' );
252
+ if (PHP_VERSION_ID >= 80000 ) {
253
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/promoted-properties-types.php ' );
254
+ }
241
255
242
256
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/early-termination-phpdoc.php ' );
243
257
@@ -272,9 +286,10 @@ public function dataFileAsserts(): iterable
272
286
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/enum-reflection-php81.php ' );
273
287
}
274
288
275
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/match-expr.php ' );
276
-
277
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/nullsafe.php ' );
289
+ if (PHP_VERSION_ID >= 80000 ) {
290
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/match-expr.php ' );
291
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/nullsafe.php ' );
292
+ }
278
293
279
294
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/specified-types-closure-use.php ' );
280
295
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/specified-types-closure-edge.php ' );
@@ -500,7 +515,10 @@ public function dataFileAsserts(): iterable
500
515
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4820.php ' );
501
516
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4822.php ' );
502
517
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4816.php ' );
503
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4757.php ' );
518
+
519
+ if (PHP_VERSION_ID >= 80000 ) {
520
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4757.php ' );
521
+ }
504
522
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4814.php ' );
505
523
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4982.php ' );
506
524
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4761.php ' );
@@ -515,7 +533,11 @@ public function dataFileAsserts(): iterable
515
533
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-5000.php ' );
516
534
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/number_format.php ' );
517
535
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-5140.php ' );
518
- yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Comparison/data/bug-4857.php ' );
536
+
537
+ if (PHP_VERSION_ID >= 80000 ) {
538
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Comparison/data/bug-4857.php ' );
539
+ }
540
+
519
541
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/empty-array-shape.php ' );
520
542
yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Methods/data/bug-5089.php ' );
521
543
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-3158.php ' );
@@ -525,10 +547,13 @@ public function dataFileAsserts(): iterable
525
547
526
548
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/uksort-bug.php ' );
527
549
528
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/arrow-function-types.php ' );
550
+ if (PHP_VERSION_ID >= 70400 ) {
551
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/arrow-function-types.php ' );
552
+ }
553
+
529
554
if (PHP_VERSION_ID >= 80000 ) {
530
555
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4902-php8.php ' );
531
- } else {
556
+ } elseif ( PHP_VERSION_ID >= 70400 ) {
532
557
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4902.php ' );
533
558
}
534
559
@@ -561,7 +586,10 @@ public function dataFileAsserts(): iterable
561
586
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-5336.php ' );
562
587
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-6845.php ' );
563
588
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/splfixedarray-iterator-types.php ' );
564
- yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Methods/data/bug-5372.php ' );
589
+
590
+ if (PHP_VERSION_ID >= 70400 ) {
591
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Methods/data/bug-5372.php ' );
592
+ }
565
593
yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Arrays/data/bug-5372_2.php ' );
566
594
567
595
if (PHP_VERSION_ID >= 80000 ) {
@@ -577,6 +605,7 @@ public function dataFileAsserts(): iterable
577
605
578
606
if (PHP_VERSION_ID >= 80000 ) {
579
607
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/reflectionclass-issue-5511-php8.php ' );
608
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/model-mixin.php ' );
580
609
}
581
610
582
611
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/modulo-operator.php ' );
@@ -585,8 +614,6 @@ public function dataFileAsserts(): iterable
585
614
586
615
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/filter-var-returns-non-empty-string.php ' );
587
616
588
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/model-mixin.php ' );
589
-
590
617
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-5529.php ' );
591
618
592
619
if (PHP_VERSION_ID >= 80000 ) {
@@ -654,18 +681,18 @@ public function dataFileAsserts(): iterable
654
681
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-5458.php ' );
655
682
}
656
683
657
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/never.php ' );
684
+ if (PHP_VERSION_ID >= 80100 ) {
685
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/never.php ' );
686
+ }
658
687
659
688
if (PHP_VERSION_ID >= 80100 ) {
660
689
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-10627.php ' );
690
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/native-intersection.php ' );
691
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/new-in-initializers.php ' );
661
692
}
662
693
663
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/native-intersection.php ' );
664
-
665
694
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-2760.php ' );
666
695
667
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/new-in-initializers.php ' );
668
-
669
696
if (PHP_VERSION_ID >= 80100 ) {
670
697
define ('TEST_OBJECT_CONSTANT ' , new stdClass ());
671
698
define ('TEST_NULL_CONSTANT ' , null );
@@ -676,9 +703,8 @@ public function dataFileAsserts(): iterable
676
703
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/new-in-initializers-runtime.php ' );
677
704
}
678
705
679
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/first-class-callables.php ' );
680
-
681
706
if (PHP_VERSION_ID >= 80100 ) {
707
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/first-class-callables.php ' );
682
708
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/array-is-list-type-specifying.php ' );
683
709
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/array-is-list-unset.php ' );
684
710
}
@@ -1206,7 +1232,7 @@ public function dataFileAsserts(): iterable
1206
1232
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-8017.php ' );
1207
1233
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/global-namespace.php ' );
1208
1234
1209
- if (PHP_VERSION_ID >= 80000 ) {
1235
+ if (PHP_VERSION_ID >= 80200 ) {
1210
1236
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/dnf.php ' );
1211
1237
}
1212
1238
@@ -1436,8 +1462,12 @@ public function dataFileAsserts(): iterable
1436
1462
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-7915.php ' );
1437
1463
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-9714.php ' );
1438
1464
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-9105.php ' );
1439
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-5172.php ' );
1440
- yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-9293.php ' );
1465
+
1466
+ if (PHP_VERSION_ID >= 80000 ) {
1467
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-5172.php ' );
1468
+ yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-9293.php ' );
1469
+ }
1470
+
1441
1471
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/nullsafe-vs-scalar.php ' );
1442
1472
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-8517.php ' );
1443
1473
yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Functions/data/bug-9803.php ' );
0 commit comments