Skip to content

Commit 79f5069

Browse files
committed
Final? fixes
1 parent 8e5ddce commit 79f5069

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

build/more-enum-adapter-errors.neon

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
parameters:
22
ignoreErrors:
3-
-
4-
message: "#^Parameter \\#1 \\$expected of method PHPUnit\\\\Framework\\\\Assert\\:\\:assertInstanceOf\\(\\) expects class\\-string\\<ReflectionEnum\\>, string given\\.$#"
5-
count: 1
6-
path: ../tests/PHPStan/Reflection/ClassReflectionTest.php
73
-
84
message: "#^Strict comparison using \\!\\=\\= between class\\-string and 'UnitEnum' will always evaluate to true\\.$#"
95
count: 1

tests/PHPStan/Reflection/ClassReflectionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ public function testEnumIsFinal(): void
296296
$reflectionProvider = $this->createReflectionProvider();
297297
$enum = $reflectionProvider->getClass('PHPStan\Fixture\TestEnum');
298298
$this->assertTrue($enum->isEnum());
299-
$this->assertInstanceOf('ReflectionEnum', $enum->getNativeReflection()); // @phpstan-ignore-line
299+
$this->assertInstanceOf('ReflectionEnum', $enum->getNativeReflection()); // @phpstan-ignore-line Exact error differs on PHP 7.4 and others
300300
$this->assertTrue($enum->isFinal());
301301
$this->assertTrue($enum->isFinalByKeyword());
302302
}

0 commit comments

Comments
 (0)