File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1+ parameters :
2+ excludePaths :
3+ - ../tests/PHPStan/Fixture/TestEnum.php
Original file line number Diff line number Diff line change 1515}
1616if (PHP_VERSION_ID >= 80100 ) {
1717 $ config = array_merge_recursive ($ config , $ adapter ->load (__DIR__ . '/baseline-8.1.neon ' ));
18+ } else {
19+ $ config = array_merge_recursive ($ config , $ adapter ->load (__DIR__ . '/enums.neon ' ));
1820}
1921
2022if (PHP_VERSION_ID >= 70400 ) {
Original file line number Diff line number Diff line change 2828use NestedTraits \BazTrait ;
2929use NestedTraits \NoTrait ;
3030use PHPStan \Broker \Broker ;
31- use PHPStan \Fixture \TestEnum ;
3231use PHPStan \Php \PhpVersion ;
3332use PHPStan \PhpDoc \PhpDocInheritanceResolver ;
3433use PHPStan \PhpDoc \StubPhpDocProvider ;
@@ -333,9 +332,9 @@ public function testEnumIsFinal(): void
333332 }
334333
335334 $ reflectionProvider = $ this ->createReflectionProvider ();
336- $ enum = $ reflectionProvider ->getClass (TestEnum::class );
335+ $ enum = $ reflectionProvider ->getClass (' PHPStan\Fixture\ TestEnum' );
337336 $ this ->assertTrue ($ enum ->isEnum ());
338- $ this ->assertInstanceOf (ReflectionEnum::class , $ enum ->getNativeReflection ());
337+ $ this ->assertInstanceOf (' ReflectionEnum ' , $ enum ->getNativeReflection ());
339338 $ this ->assertTrue ($ enum ->isFinal ());
340339 $ this ->assertTrue ($ enum ->isFinalByKeyword ());
341340 }
You can’t perform that action at this time.
0 commit comments