Skip to content

Commit 3d48241

Browse files
authored
Fix build again
1 parent 9cf4eb8 commit 3d48241

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,14 +1689,18 @@ public function testBug10974(): void
16891689

16901690
public function testCountArrayShift(): void
16911691
{
1692+
if (PHP_VERSION_ID < 80000) {
1693+
$this->markTestSkipped('Test requires PHP 8.0.');
1694+
}
1695+
16921696
$this->analyse([__DIR__ . '/data/count-array-shift.php'], [
16931697
[
16941698
'Parameter #1 $value of function count expects array|Countable, array|false given.',
1695-
10,
1699+
8,
16961700
],
16971701
[
16981702
'Parameter #1 $value of function count expects array|Countable, array|false given.',
1699-
18,
1703+
16,
17001704
],
17011705
]);
17021706
}

0 commit comments

Comments
 (0)