diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php index abe91869a..81fdfe4c7 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/FunctionCallAnalyzer.php @@ -100,8 +100,6 @@ class FunctionCallAnalyzer extends \Psalm\Internal\Analyzer\Statements\Expressio } if ($original_function_id === 'call_user_func_array' && isset($stmt->args[1])) { - $other_args = \array_slice($stmt->args, 1); - $stmt = new PhpParser\Node\Expr\FuncCall( $stmt->args[0]->value, [new PhpParser\Node\Arg($stmt->args[1]->value, false, true)],