@@ -15,7 +15,6 @@ class NodeScopeResolverTest extends TypeInferenceTestCase
15
15
16
16
public function dataFileAsserts (): iterable
17
17
{
18
- require_once __DIR__ . '/data/implode.php ' ;
19
18
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/implode.php ' );
20
19
21
20
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/json-decode/narrow_type.php ' );
@@ -24,21 +23,13 @@ public function dataFileAsserts(): iterable
24
23
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/json-decode/json_object_as_array.php ' );
25
24
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/generic-method-tags.php ' );
26
25
27
- require_once __DIR__ . '/data/bug2574.php ' ;
28
-
29
26
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug2574.php ' );
30
27
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/generic-callables.php ' );
31
28
32
- require_once __DIR__ . '/data/bug2577.php ' ;
33
-
34
29
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug2577.php ' );
35
30
36
- require_once __DIR__ . '/data/generics.php ' ;
37
-
38
31
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/generics.php ' );
39
32
40
- require_once __DIR__ . '/data/generic-class-string.php ' ;
41
-
42
33
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/generic-class-string.php ' );
43
34
if (PHP_VERSION_ID >= 80100 ) {
44
35
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/generic-enum-class-string.php ' );
@@ -47,12 +38,8 @@ public function dataFileAsserts(): iterable
47
38
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-10445.php ' );
48
39
}
49
40
50
- require_once __DIR__ . '/data/generic-generalization.php ' ;
51
-
52
41
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/generic-generalization.php ' );
53
42
54
- require_once __DIR__ . '/data/instanceof.php ' ;
55
-
56
43
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/named-arguments.php ' );
57
44
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/date.php ' );
58
45
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/instanceof.php ' );
@@ -157,7 +144,6 @@ public function dataFileAsserts(): iterable
157
144
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/graphics-draw-return-types.php ' );
158
145
}
159
146
160
- require_once __DIR__ . '/../../../stubs/runtime/ReflectionUnionType.php ' ;
161
147
yield from $ this ->gatherAssertTypes (__DIR__ . '/../Reflection/data/unionTypes.php ' );
162
148
163
149
yield from $ this ->gatherAssertTypes (__DIR__ . '/../Reflection/data/mixedType.php ' );
@@ -398,7 +384,6 @@ public function dataFileAsserts(): iterable
398
384
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4579.php ' );
399
385
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-3321.php ' );
400
386
401
- require_once __DIR__ . '/../Rules/Generics/data/bug-3769.php ' ;
402
387
yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Generics/data/bug-3769.php ' );
403
388
yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Generics/data/bug-6301.php ' );
404
389
@@ -414,7 +399,6 @@ public function dataFileAsserts(): iterable
414
399
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/iterator-iterator.php ' );
415
400
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4642.php ' );
416
401
yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/PhpDoc/data/bug-4643.php ' );
417
- require_once __DIR__ . '/data/throw-points/helpers.php ' ;
418
402
if (PHP_VERSION_ID >= 80000 ) {
419
403
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/throw-points/php8/null-safe-method-call.php ' );
420
404
}
@@ -439,7 +423,6 @@ public function dataFileAsserts(): iterable
439
423
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/throw-points/while.php ' );
440
424
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/throw-points/try-catch.php ' );
441
425
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/phpdoc-pseudotype-override.php ' );
442
- require_once __DIR__ . '/data/phpdoc-pseudotype-namespace.php ' ;
443
426
444
427
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/phpdoc-pseudotype-namespace.php ' );
445
428
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/phpdoc-pseudotype-global.php ' );
@@ -475,7 +458,6 @@ public function dataFileAsserts(): iterable
475
458
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/invalidate-object-argument.php ' );
476
459
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/invalidate-object-argument-static.php ' );
477
460
478
- require_once __DIR__ . '/data/invalidate-object-argument-function.php ' ;
479
461
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/invalidate-object-argument-function.php ' );
480
462
481
463
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4588.php ' );
@@ -505,8 +487,6 @@ public function dataFileAsserts(): iterable
505
487
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/generics-reduce-types-first.php ' );
506
488
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4803.php ' );
507
489
508
- require_once __DIR__ . '/data/type-aliases.php ' ;
509
-
510
490
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/type-aliases.php ' );
511
491
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-4650.php ' );
512
492
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-2906.php ' );
@@ -541,7 +521,6 @@ public function dataFileAsserts(): iterable
541
521
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-3158.php ' );
542
522
yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Methods/data/unable-to-resolve-callback-parameter-type.php ' );
543
523
544
- require_once __DIR__ . '/../Rules/Functions/data/varying-acceptor.php ' ;
545
524
yield from $ this ->gatherAssertTypes (__DIR__ . '/../Rules/Functions/data/varying-acceptor.php ' );
546
525
547
526
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/uksort-bug.php ' );
@@ -870,7 +849,6 @@ public function dataFileAsserts(): iterable
870
849
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-6654.php ' );
871
850
}
872
851
873
- require_once __DIR__ . '/data/countable.php ' ;
874
852
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/countable.php ' );
875
853
876
854
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/bug-6696.php ' );
@@ -1020,7 +998,6 @@ public function dataFileAsserts(): iterable
1020
998
1021
999
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/conditional-types-constant.php ' );
1022
1000
1023
- require_once __DIR__ . '/data/constant-phpdoc-type.php ' ;
1024
1001
yield from $ this ->gatherAssertTypes (__DIR__ . '/data/constant-phpdoc-type.php ' );
1025
1002
1026
1003
if (PHP_VERSION_ID >= 80000 ) {
0 commit comments