Skip to content

Commit 667487c

Browse files
committed
Add PHP 8.4 version guard
1 parent dc5ef2e commit 667487c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -888,6 +888,10 @@ public function testArrayFilterCallback(bool $checkExplicitMixed): void
888888

889889
public function testArrayAllCallback(): void
890890
{
891+
if (PHP_VERSION_ID < 80400) {
892+
$this->markTestSkipped('Test skipped on lower version than 8.4 (needs array_all function)');
893+
}
894+
891895
$this->analyse([__DIR__ . '/data/array_all.php'], [
892896
[
893897
'Parameter #2 $callback of function array_all expects callable(1|2, \'bar\'|\'foo\'): bool, Closure(string, int): bool given.',
@@ -914,6 +918,10 @@ public function testArrayAllCallback(): void
914918

915919
public function testArrayAnyCallback(): void
916920
{
921+
if (PHP_VERSION_ID < 80400) {
922+
$this->markTestSkipped('Test skipped on lower version than 8.4 (needs array_any function)');
923+
}
924+
917925
$this->analyse([__DIR__ . '/data/array_any.php'], [
918926
[
919927
'Parameter #2 $callback of function array_any expects callable(1|2, \'bar\'|\'foo\'): bool, Closure(string, int): bool given.',

0 commit comments

Comments
 (0)