Skip to content

Commit c4c85eb

Browse files
committed
Compatibility with latest PHPStan
1 parent 1937716 commit c4c85eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": "^7.1 || ^8.0",
10-
"phpstan/phpstan": "^0.12.55"
10+
"phpstan/phpstan": "^0.12.56"
1111
},
1212
"conflict": {
1313
"doctrine/collections": "<1.0",

tests/Rules/Doctrine/ORM/MagicRepositoryMethodCallRuleTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Rules\Doctrine\ORM;
44

5+
use PHPStan\Php\PhpVersion;
56
use PHPStan\Rules\FunctionCallParametersCheck;
67
use PHPStan\Rules\Methods\CallMethodsRule;
78
use PHPStan\Rules\NullsafeCheck;
@@ -21,7 +22,7 @@ protected function getRule(): Rule
2122
$ruleLevelHelper = new RuleLevelHelper($broker, true, false, true);
2223
return new CallMethodsRule(
2324
$broker,
24-
new FunctionCallParametersCheck($ruleLevelHelper, new NullsafeCheck(), true, true, true, true),
25+
new FunctionCallParametersCheck($ruleLevelHelper, new NullsafeCheck(), new PhpVersion(PHP_VERSION_ID), true, true, true, true),
2526
$ruleLevelHelper,
2627
true,
2728
true

0 commit comments

Comments
 (0)