← All changes
|
libraries/vendor/PhpSpreadsheet/Calculation/Financial/CashFlow/Variable/NonPeriodic.php
+2
-2
3.3.2
→
3.4
View file →
| @@ -169,9 +169,9 @@ | ||
| 169 | 169 | $foundpos = false; |
| 170 | 170 | $foundneg = false; |
| 171 | 171 | for ($i = 0; $i < $valCount; ++$i) { |
| 172 | 172 | $fld = $values[$i]; |
| 173 | - if (!is_numeric($fld)) { //* @phpstan-ignore-line | |
| 173 | + if (!is_numeric($fld)) { | |
| 174 | 174 | return ExcelError::VALUE(); |
| 175 | 175 | } elseif ($fld > 0) { |
| 176 | 176 | $foundpos = true; |
| 177 | 177 | } elseif ($fld < 0) { |
| @@ -221,9 +221,9 @@ | ||
| 221 | 221 | |
| 222 | 222 | /** |
| 223 | 223 | * @param array<int, float|int|numeric-string> $values |
| 224 | 224 | * @param array<int, float|int|numeric-string> $dates |
| 225 | - * @return float|string | |
| 225 | + * @return string|float | |
| 226 | 226 | */ |
| 227 | 227 | private static function xirrBisection(array $values, array $dates, float $x1, float $x2) |
| 228 | 228 | { |
| 229 | 229 | $rslt = ExcelError::NAN(); |