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:
parent
82f35c1454
commit
4bb675ea72
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user