Skip to content

Commit 824a1e5

Browse files
committed
Keep the PHP 8 requirement on the call_user_func() rule test
Inserting the forward_static_call() test above testRule() took over its #[RequiresPhp('>= 8.0.0')] attribute, so testRule() started running on PHP 7.4 and reported the named arguments in its data file as unsupported. The new test does not use PHP 8 syntax and needs no such guard.
1 parent 3cf80b2 commit 824a1e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/PHPStan/Rules/Functions/CallUserFuncRuleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ protected function getRule(): Rule
4545
);
4646
}
4747

48-
#[RequiresPhp('>= 8.0.0')]
4948
public function testForwardStaticCall(): void
5049
{
5150
$this->analyse([__DIR__ . '/data/forward-static-call.php'], [
@@ -72,6 +71,7 @@ public function testForwardStaticCall(): void
7271
]);
7372
}
7473

74+
#[RequiresPhp('>= 8.0.0')]
7575
public function testRule(): void
7676
{
7777
$this->analyse([__DIR__ . '/data/call-user-func.php'], [

0 commit comments

Comments
 (0)