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:
parent
3b5909804d
commit
5d610b222a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user