|
29 | 29 | use PHPStan\Node\Expr\PossiblyImpureCallExpr; |
30 | 30 | use PHPStan\Reflection\Callables\SimpleImpurePoint; |
31 | 31 | use PHPStan\Reflection\MethodReflection; |
32 | | -use PHPStan\Reflection\ParametersAcceptor; |
33 | 32 | use PHPStan\Reflection\ParametersAcceptorSelector; |
34 | 33 | use PHPStan\Type\ErrorType; |
35 | 34 | use PHPStan\Type\MixedType; |
@@ -199,7 +198,7 @@ public function processExpr(NodeScopeResolver $nodeScopeResolver, Stmt $stmt, Ex |
199 | 198 | $scopeFunction = $scope->getFunction(); |
200 | 199 |
|
201 | 200 | if ($methodReflection !== null) { |
202 | | - $methodThrowPoint = $this->getStaticMethodThrowPoint($methodReflection, $parametersAcceptor, $expr, $scope); |
| 201 | + $methodThrowPoint = $this->getStaticMethodThrowPoint($methodReflection, $normalizedExpr, $scope); |
203 | 202 | if ($methodThrowPoint !== null) { |
204 | 203 | $throwPoints[] = $methodThrowPoint; |
205 | 204 | } |
@@ -269,7 +268,7 @@ public function processExpr(NodeScopeResolver $nodeScopeResolver, Stmt $stmt, Ex |
269 | 268 | ); |
270 | 269 | } |
271 | 270 |
|
272 | | - private function getStaticMethodThrowPoint(MethodReflection $methodReflection, ParametersAcceptor $parametersAcceptor, StaticCall $normalizedMethodCall, MutatingScope $scope): ?InternalThrowPoint |
| 271 | + private function getStaticMethodThrowPoint(MethodReflection $methodReflection, StaticCall $normalizedMethodCall, MutatingScope $scope): ?InternalThrowPoint |
273 | 272 | { |
274 | 273 | foreach ($this->dynamicThrowTypeExtensionProvider->getDynamicStaticMethodThrowTypeExtensions() as $extension) { |
275 | 274 | if (!$extension->isStaticMethodSupported($methodReflection)) { |
|
0 commit comments