mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 22:01:48 +01:00
Use correct count
This commit is contained in:
parent
8d1de7757d
commit
d4ccfcf75d
@ -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…
x
Reference in New Issue
Block a user