1
0
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:
Brown 2018-10-17 13:25:09 -04:00
parent e6cf9e96df
commit 6a7148204b
2 changed files with 3 additions and 0 deletions

View File

@ -827,6 +827,7 @@ class FunctionChecker extends FunctionLikeChecker
]); ]);
} elseif ($function_call_arg->value instanceof PhpParser\Node\Scalar\String_ } 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\Array_
|| $function_call_arg->value instanceof PhpParser\Node\Expr\BinaryOp\Concat
) { ) {
$mapping_function_ids = Statements\Expression\CallChecker::getFunctionIdsFromCallableArg( $mapping_function_ids = Statements\Expression\CallChecker::getFunctionIdsFromCallableArg(
$statements_checker, $statements_checker,
@ -1113,6 +1114,7 @@ class FunctionChecker extends FunctionLikeChecker
if ($function_call_arg instanceof PhpParser\Node\Scalar\String_ if ($function_call_arg instanceof PhpParser\Node\Scalar\String_
|| $function_call_arg instanceof PhpParser\Node\Expr\Array_ || $function_call_arg instanceof PhpParser\Node\Expr\Array_
|| $function_call_arg instanceof PhpParser\Node\Expr\BinaryOp\Concat
) { ) {
$mapping_function_ids = Statements\Expression\CallChecker::getFunctionIdsFromCallableArg( $mapping_function_ids = Statements\Expression\CallChecker::getFunctionIdsFromCallableArg(
$statements_checker, $statements_checker,

View File

@ -308,6 +308,7 @@ class DependencyFinderVisitor extends PhpParser\NodeVisitorAbstract implements P
if ($node_arg_value instanceof PhpParser\Node\Scalar\String_ if ($node_arg_value instanceof PhpParser\Node\Scalar\String_
|| $node_arg_value instanceof PhpParser\Node\Expr\Array_ || $node_arg_value instanceof PhpParser\Node\Expr\Array_
|| $node_arg_value instanceof PhpParser\Node\Expr\BinaryOp\Concat
) { ) {
$mapping_function_ids = CallChecker::getFunctionIdsFromCallableArg( $mapping_function_ids = CallChecker::getFunctionIdsFromCallableArg(
$this->file_scanner, $this->file_scanner,