Skip to content

Commit 748eaac

Browse files
committed
Compatibility with latest PHPStan
1 parent 59b8c5f commit 748eaac

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Diff for: composer.json

+1-1
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.85"
10+
"phpstan/phpstan": "^0.12.89"
1111
},
1212
"conflict": {
1313
"doctrine/collections": "<1.0",

Diff for: tests/Rules/Doctrine/ORM/MagicRepositoryMethodCallRuleTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use PHPStan\Rules\FunctionCallParametersCheck;
77
use PHPStan\Rules\Methods\CallMethodsRule;
88
use PHPStan\Rules\NullsafeCheck;
9+
use PHPStan\Rules\PhpDoc\UnresolvableTypeHelper;
910
use PHPStan\Rules\Rule;
1011
use PHPStan\Rules\RuleLevelHelper;
1112
use PHPStan\Testing\RuleTestCase;
@@ -22,7 +23,7 @@ protected function getRule(): Rule
2223
$ruleLevelHelper = new RuleLevelHelper($broker, true, false, true);
2324
return new CallMethodsRule(
2425
$broker,
25-
new FunctionCallParametersCheck($ruleLevelHelper, new NullsafeCheck(), new PhpVersion(PHP_VERSION_ID), true, true, true, true),
26+
new FunctionCallParametersCheck($ruleLevelHelper, new NullsafeCheck(), new PhpVersion(PHP_VERSION_ID), new UnresolvableTypeHelper(true), true, true, true, true, true),
2627
$ruleLevelHelper,
2728
true,
2829
true

0 commit comments

Comments
 (0)