← All changes
|
libraries/vendor/PhpSpreadsheet/Calculation/Financial/CashFlow/Variable/Periodic.php
+2
-2
3.3.4
→
3.4
View file →
| @@ -27,9 +27,9 @@ | ||
| 27 | 27 | * to calculate the internal rate of return. |
| 28 | 28 | * Values must contain at least one positive value and one negative value to |
| 29 | 29 | * calculate the internal rate of return. |
| 30 | 30 | * @param mixed $guess A number that you guess is close to the result of IRR |
| 31 | - * @return float|string | |
| 31 | + * @return string|float | |
| 32 | 32 | */ |
| 33 | 33 | public static function rate($values, $guess = 0.1) |
| 34 | 34 | { |
| 35 | 35 | if (!is_array($values)) { |
| @@ -141,9 +141,9 @@ | ||
| 141 | 141 | * |
| 142 | 142 | * Returns the Net Present Value of a cash flow series given a discount rate. |
| 143 | 143 | * |
| 144 | 144 | * @param array<mixed> $args |
| 145 | - * @return float|int | |
| 145 | + * @return int|float | |
| 146 | 146 | * @param mixed $rate |
| 147 | 147 | */ |
| 148 | 148 | public static function presentValue($rate, ...$args) |
| 149 | 149 | { |