Skip to content

Commit

Permalink
Use correct count
Browse files Browse the repository at this point in the history
  • Loading branch information
muglug authored and danog committed Jan 29, 2021
1 parent 8d1de77 commit d4ccfcf
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,8 @@ public static function checkArgumentsMatch(
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
),
Expand Down

0 comments on commit d4ccfcf

Please sign in to comment.