Skip to content

Commit dc5560d

Browse files
committed
Use current PHP version in CallToFunctionParametersRuleTest
1 parent c586014 commit dc5560d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/PHPStan/Rules/Functions/CallToFunctionParametersRuleTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,14 @@ class CallToFunctionParametersRuleTest extends RuleTestCase
2323

2424
private bool $checkImplicitMixed = false;
2525

26+
private int $phpVersion = PHP_VERSION_ID;
27+
2628
protected function getRule(): Rule
2729
{
2830
$broker = $this->createReflectionProvider();
2931
return new CallToFunctionParametersRule(
3032
$broker,
31-
new FunctionCallParametersCheck(new RuleLevelHelper($broker, true, false, true, $this->checkExplicitMixed, $this->checkImplicitMixed, true, false), new NullsafeCheck(), new PhpVersion(80000), new UnresolvableTypeHelper(), new PropertyReflectionFinder(), true, true, true, true, true),
33+
new FunctionCallParametersCheck(new RuleLevelHelper($broker, true, false, true, $this->checkExplicitMixed, $this->checkImplicitMixed, true, false), new NullsafeCheck(), new PhpVersion($this->phpVersion), new UnresolvableTypeHelper(), new PropertyReflectionFinder(), true, true, true, true, true),
3234
);
3335
}
3436

0 commit comments

Comments
 (0)