Skip to content

Commit 6feecc7

Browse files
committed
Updated PHPStan
1 parent 4af7dd1 commit 6feecc7

3 files changed

+6
-4
lines changed

phpstan.neon

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ parameters:
99

1010
services:
1111
scopeIsInClass:
12-
class: PHPStan\Build\ScopeIsInClassTypeSpecifyingExtension
12+
class: PHPStan\Internal\ScopeIsInClassTypeSpecifyingExtension
1313
arguments:
1414
isInMethodName: isInClass
1515
removeNullMethodName: getClassReflection
1616
tags:
1717
- phpstan.typeSpecifier.methodTypeSpecifyingExtension
1818

1919
scopeIsInTrait:
20-
class: PHPStan\Build\ScopeIsInClassTypeSpecifyingExtension
20+
class: PHPStan\Internal\ScopeIsInClassTypeSpecifyingExtension
2121
arguments:
2222
isInMethodName: isInTrait
2323
removeNullMethodName: getTraitReflection

tests/Rules/PHPUnit/AssertSameMethodDifferentTypesRuleTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Rules\PHPUnit;
44

5+
use PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper;
56
use PHPStan\Rules\Comparison\ImpossibleCheckTypeMethodCallRule;
67
use PHPStan\Rules\Rule;
78
use PHPStan\Type\PHPUnit\Assert\AssertMethodTypeSpecifyingExtension;
@@ -11,7 +12,7 @@ class AssertSameMethodDifferentTypesRuleTest extends \PHPStan\Testing\RuleTestCa
1112

1213
protected function getRule(): Rule
1314
{
14-
return new ImpossibleCheckTypeMethodCallRule($this->getTypeSpecifier(), true);
15+
return new ImpossibleCheckTypeMethodCallRule(new ImpossibleCheckTypeHelper($this->getTypeSpecifier()), true);
1516
}
1617

1718
/**

tests/Rules/PHPUnit/AssertSameStaticMethodDifferentTypesRuleTest.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace PHPStan\Rules\PHPUnit;
44

5+
use PHPStan\Rules\Comparison\ImpossibleCheckTypeHelper;
56
use PHPStan\Rules\Comparison\ImpossibleCheckTypeStaticMethodCallRule;
67
use PHPStan\Rules\Rule;
78
use PHPStan\Type\PHPUnit\Assert\AssertStaticMethodTypeSpecifyingExtension;
@@ -11,7 +12,7 @@ class AssertSameStaticMethodDifferentTypesRuleTest extends \PHPStan\Testing\Rule
1112

1213
protected function getRule(): Rule
1314
{
14-
return new ImpossibleCheckTypeStaticMethodCallRule($this->getTypeSpecifier(), true);
15+
return new ImpossibleCheckTypeStaticMethodCallRule(new ImpossibleCheckTypeHelper($this->getTypeSpecifier()), true);
1516
}
1617

1718
/**

0 commit comments

Comments
 (0)