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:
parent
4488d5fb1f
commit
b2382cdf18
@ -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
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user