Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jan 10, 2023
1 parent 560a0cc commit a42b35c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/PHPStan/Type/IntersectionTypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,10 @@ public function testToBooleanCrash(): void

public function dataGetEnumCases(): iterable
{
if (PHP_VERSION_ID < 80100) {
return [];
}

$reflectionProvider = $this->createReflectionProvider();
$classReflection = $reflectionProvider->getClass(FooEnum::class);

Expand All @@ -435,10 +439,6 @@ public function testGetEnumCases(
array $expectedEnumCases,
): void
{
if (PHP_VERSION_ID < 80100) {
$this->markTestSkipped('Test requires PHP 8.1.');
}

$enumCases = $type->getEnumCases();
$this->assertCount(count($expectedEnumCases), $enumCases);
foreach ($enumCases as $i => $enumCase) {
Expand Down

0 comments on commit a42b35c

Please sign in to comment.