1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Fix off-by-one error

This commit is contained in:
Matthew Brown 2016-08-22 15:43:08 -04:00
parent 3b5909804d
commit 5d610b222a

View File

@ -638,7 +638,7 @@ abstract class FunctionLikeChecker implements StatementsSource
$all_args_match = true;
foreach ($args as $argument_offset => $arg) {
if (count($possible_function_params) < $argument_offset) {
if (count($possible_function_params) <= $argument_offset) {
break;
}