diff --git a/src/PhpSpreadsheet/Calculation/LookupRef/ExcelMatch.php b/src/PhpSpreadsheet/Calculation/LookupRef/ExcelMatch.php index 5cd70de9e..668290e00 100644 --- a/src/PhpSpreadsheet/Calculation/LookupRef/ExcelMatch.php +++ b/src/PhpSpreadsheet/Calculation/LookupRef/ExcelMatch.php @@ -63,7 +63,6 @@ class ExcelMatch $lookupValue = StringHelper::strToLower($lookupValue); } - $valueKey = null; $valueKey = match ($matchType) { self::MATCHTYPE_LARGEST_VALUE => self::matchLargestValue($lookupArray, $lookupValue, $keySet), self::MATCHTYPE_FIRST_VALUE => self::matchFirstValue($lookupArray, $lookupValue),