From d4ccfcf75d039814b76fdeb96cc4820d88fab8b9 Mon Sep 17 00:00:00 2001 From: Matt Brown Date: Wed, 14 Oct 2020 18:56:49 -0400 Subject: [PATCH] Use correct count --- .../Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php index 5799b52db..d4e69967f 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/Call/ArgumentsAnalyzer.php @@ -822,7 +822,8 @@ class ArgumentsAnalyzer if (IssueBuffer::accepts( new TooFewArguments( 'Too few arguments for ' . $cased_method_id - . ' - expecting ' . $expected_param_count . ' but saw ' . count($args), + . ' - expecting ' . $expected_param_count + . ' but saw ' . (count($args) + $packed_var_definite_args), $code_location, (string) $method_id ),