← All changes
|
libraries/vendor/PhpSpreadsheet/Calculation/MathTrig/Subtotal.php
+4
-1
3.3.1
→
3.4
View file →
| @@ -152,9 +152,12 @@ | ||
| 152 | 152 | $aArgs = self::filterFormulaArgs($cellReference, $aArgs); |
| 153 | 153 | if (array_key_exists($subtotal, self::CALL_FUNCTIONS)) { |
| 154 | 154 | $call = self::CALL_FUNCTIONS[$subtotal]; |
| 155 | 155 | |
| 156 | - return call_user_func_array($call, $aArgs); //* @phpstan-ignore-line | |
| 156 | + /** @var float|int|string */ | |
| 157 | + $temp = call_user_func_array($call, $aArgs); | |
| 158 | + | |
| 159 | + return $temp; | |
| 157 | 160 | } |
| 158 | 161 | |
| 159 | 162 | return ExcelError::VALUE(); |
| 160 | 163 | } |