Skip to content

Commit ca88b44

Browse files
committed
drop no longer used parameter
1 parent 3f1fd98 commit ca88b44

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Analyser/ExprHandler/StaticCallHandler.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
use PHPStan\Node\Expr\PossiblyImpureCallExpr;
3030
use PHPStan\Reflection\Callables\SimpleImpurePoint;
3131
use PHPStan\Reflection\MethodReflection;
32-
use PHPStan\Reflection\ParametersAcceptor;
3332
use PHPStan\Reflection\ParametersAcceptorSelector;
3433
use PHPStan\Type\ErrorType;
3534
use PHPStan\Type\MixedType;
@@ -199,7 +198,7 @@ public function processExpr(NodeScopeResolver $nodeScopeResolver, Stmt $stmt, Ex
199198
$scopeFunction = $scope->getFunction();
200199

201200
if ($methodReflection !== null) {
202-
$methodThrowPoint = $this->getStaticMethodThrowPoint($methodReflection, $parametersAcceptor, $expr, $scope);
201+
$methodThrowPoint = $this->getStaticMethodThrowPoint($methodReflection, $normalizedExpr, $scope);
203202
if ($methodThrowPoint !== null) {
204203
$throwPoints[] = $methodThrowPoint;
205204
}
@@ -269,7 +268,7 @@ public function processExpr(NodeScopeResolver $nodeScopeResolver, Stmt $stmt, Ex
269268
);
270269
}
271270

272-
private function getStaticMethodThrowPoint(MethodReflection $methodReflection, ParametersAcceptor $parametersAcceptor, StaticCall $normalizedMethodCall, MutatingScope $scope): ?InternalThrowPoint
271+
private function getStaticMethodThrowPoint(MethodReflection $methodReflection, StaticCall $normalizedMethodCall, MutatingScope $scope): ?InternalThrowPoint
273272
{
274273
foreach ($this->dynamicThrowTypeExtensionProvider->getDynamicStaticMethodThrowTypeExtensions() as $extension) {
275274
if (!$extension->isStaticMethodSupported($methodReflection)) {

0 commit comments

Comments
 (0)