1
0
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:
Matt Brown 2020-10-14 18:56:49 -04:00 committed by Daniil Gentili
parent 8d1de7757d
commit d4ccfcf75d
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7

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