Skip to content

Commit 044231b

Browse files
committed
Always run ConstantToFunctionParameterMapTest against the latest phpVersion
1 parent 3e083d0 commit 044231b

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

tests/PHPStan/Reflection/ConstantToFunctionParameterMapTest.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
use PHPStan\Testing\PHPStanTestCase;
77
use PHPUnit\Framework\Attributes\RequiresPhp;
88
use function array_keys;
9+
use function array_merge;
910
use function count;
1011
use function explode;
1112
use function implode;
1213
use function sprintf;
1314
use function str_contains;
14-
use const PHP_VERSION_ID;
1515

1616
#[RequiresPhp('>= 8.0')]
1717
class ConstantToFunctionParameterMapTest extends PHPStanTestCase
@@ -106,9 +106,6 @@ public function testMapIsValid(): void
106106
);
107107
} else {
108108
$this->assertNotSame('', $constantName);
109-
if ($constantName === 'FILEINFO_APPLE' && PHP_VERSION_ID < 80200) {
110-
continue;
111-
}
112109
// Global constant
113110
$constantNameNode = new Name($constantName);
114111
$this->assertTrue(
@@ -152,4 +149,14 @@ public function testMapIsValid(): void
152149
}
153150
}
154151

152+
public static function getAdditionalConfigFiles(): array
153+
{
154+
return array_merge(
155+
parent::getAdditionalConfigFiles(),
156+
[
157+
__DIR__ . '/constantToFunctionParameterMap.neon',
158+
],
159+
);
160+
}
161+
155162
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
parameters:
2+
phpVersion: 80500

0 commit comments

Comments
 (0)