Skip to content

Commit 3202294

Browse files
author
MarkBaker
committed
In the MATCH() function, we shoul also use evaluateArrayArgumentsIgnore() because the lookupvalue and matchType arguments can be array arguments, but lookupArray is always a dataset matrix
1 parent 5384c81 commit 3202294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpSpreadsheet/Calculation/LookupRef/ExcelMatch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class ExcelMatch
3535
public static function MATCH($lookupValue, $lookupArray, $matchType = self::MATCHTYPE_LARGEST_VALUE)
3636
{
3737
if (is_array($lookupValue)) {
38-
return self::evaluateArrayArgumentsSubset([self::class, __FUNCTION__], 1, $lookupValue, $lookupArray, $matchType);
38+
return self::evaluateArrayArgumentsIgnore([self::class, __FUNCTION__], 1, $lookupValue, $lookupArray, $matchType);
3939
}
4040

4141
$lookupArray = Functions::flattenArray($lookupArray);

0 commit comments

Comments
 (0)