Skip to content

Commit 1937716

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

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.33"
10+
"phpstan/phpstan": "^0.12.55"
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
@@ -4,6 +4,7 @@
44

55
use PHPStan\Rules\FunctionCallParametersCheck;
66
use PHPStan\Rules\Methods\CallMethodsRule;
7+
use PHPStan\Rules\NullsafeCheck;
78
use PHPStan\Rules\Rule;
89
use PHPStan\Rules\RuleLevelHelper;
910
use PHPStan\Testing\RuleTestCase;
@@ -20,7 +21,7 @@ protected function getRule(): Rule
2021
$ruleLevelHelper = new RuleLevelHelper($broker, true, false, true);
2122
return new CallMethodsRule(
2223
$broker,
23-
new FunctionCallParametersCheck($ruleLevelHelper, true, true, true, true),
24+
new FunctionCallParametersCheck($ruleLevelHelper, new NullsafeCheck(), true, true, true, true),
2425
$ruleLevelHelper,
2526
true,
2627
true

0 commit comments

Comments
 (0)