1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Pass CodeLocation to FunctionParamsProviderInterface interface (#4444)

Currently the `getFunctionParams()` method of the `FunctionParamsProviderInterface` is never passed the CodeLocation of the analyzed function call. As this is in-scope in the only call site, we can pass the CodeLocation. This means the `getFunctionParams()` is able to issue it's own Issues (which required the code location to attached the Issue to)
This commit is contained in:
Joe Hoyle 2020-10-30 00:53:21 +01:00 committed by GitHub
parent 82f35c1454
commit 4bb675ea72
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,9 @@ class FunctionCallAnalyzer extends CallAnalyzer
$function_params = $codebase->functions->params_provider->getFunctionParams(
$statements_analyzer,
$function_id,
$stmt->args
$stmt->args,
null,
$code_location
);
}