mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Add checks elsewhere too
This commit is contained in:
parent
e6cf9e96df
commit
6a7148204b
@ -827,6 +827,7 @@ class FunctionChecker extends FunctionLikeChecker
|
||||
]);
|
||||
} elseif ($function_call_arg->value instanceof PhpParser\Node\Scalar\String_
|
||||
|| $function_call_arg->value instanceof PhpParser\Node\Expr\Array_
|
||||
|| $function_call_arg->value instanceof PhpParser\Node\Expr\BinaryOp\Concat
|
||||
) {
|
||||
$mapping_function_ids = Statements\Expression\CallChecker::getFunctionIdsFromCallableArg(
|
||||
$statements_checker,
|
||||
@ -1113,6 +1114,7 @@ class FunctionChecker extends FunctionLikeChecker
|
||||
|
||||
if ($function_call_arg instanceof PhpParser\Node\Scalar\String_
|
||||
|| $function_call_arg instanceof PhpParser\Node\Expr\Array_
|
||||
|| $function_call_arg instanceof PhpParser\Node\Expr\BinaryOp\Concat
|
||||
) {
|
||||
$mapping_function_ids = Statements\Expression\CallChecker::getFunctionIdsFromCallableArg(
|
||||
$statements_checker,
|
||||
|
@ -308,6 +308,7 @@ class DependencyFinderVisitor extends PhpParser\NodeVisitorAbstract implements P
|
||||
|
||||
if ($node_arg_value instanceof PhpParser\Node\Scalar\String_
|
||||
|| $node_arg_value instanceof PhpParser\Node\Expr\Array_
|
||||
|| $node_arg_value instanceof PhpParser\Node\Expr\BinaryOp\Concat
|
||||
) {
|
||||
$mapping_function_ids = CallChecker::getFunctionIdsFromCallableArg(
|
||||
$this->file_scanner,
|
||||
|
Loading…
x
Reference in New Issue
Block a user