1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 12:55:26 +01:00

Use correct count

This commit is contained in:
Matt Brown 2020-10-14 18:56:49 -04:00
parent 4488d5fb1f
commit b2382cdf18

View File

@ -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
),