@@ -40,7 +40,7 @@ |
||
40 | 40 | } |
41 | 41 | |
42 | 42 | /** @return array<mixed>|string */ |
43 | - public static function anchorArray(string $cellReference, Cell $cell): array|string |
|
43 | + public static function anchorArray(string $cellReference, Cell $cell): array | string |
|
44 | 44 | { |
45 | 45 | //$coordinate = $cell->getCoordinate(); |
46 | 46 | $worksheet = $cell->getWorksheet(); |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | * If an array of values is passed as an argument, then the returned result will also be an array |
111 | 111 | * with the same dimensions |
112 | 112 | */ |
113 | - public static function NOT(mixed $logical = false): array|bool|string |
|
113 | + public static function NOT(mixed $logical = false): array | bool | string |
|
114 | 114 | { |
115 | 115 | if (is_array($logical)) { |
116 | 116 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $logical); |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | /** @param mixed[] $args */ |
134 | - private static function countTrueValues(array $args, callable $func): bool|string |
|
134 | + private static function countTrueValues(array $args, callable $func): bool | string |
|
135 | 135 | { |
136 | 136 | $trueValueCount = 0; |
137 | 137 | $count = 0; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | * @param mixed $yValues array of mixed Data Series Y |
77 | 77 | * @param null|mixed $xValues array of mixed Data Series X |
78 | 78 | */ |
79 | - public static function CORREL(mixed $yValues, $xValues = null): float|string |
|
79 | + public static function CORREL(mixed $yValues, $xValues = null): float | string |
|
80 | 80 | { |
81 | 81 | if (($xValues === null) || (!is_array($yValues)) || (!is_array($xValues))) { |
82 | 82 | return ExcelError::VALUE(); |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | * @param mixed[] $yValues array of mixed Data Series Y |
103 | 103 | * @param mixed[] $xValues array of mixed Data Series X |
104 | 104 | */ |
105 | - public static function COVAR(array $yValues, array $xValues): float|string |
|
105 | + public static function COVAR(array $yValues, array $xValues): float | string |
|
106 | 106 | { |
107 | 107 | try { |
108 | 108 | self::checkTrendArrays($yValues, $xValues); |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | * @param mixed[] $yValues Data Series Y |
191 | 191 | * @param mixed[] $xValues Data Series X |
192 | 192 | */ |
193 | - public static function INTERCEPT(array $yValues, array $xValues): float|string |
|
193 | + public static function INTERCEPT(array $yValues, array $xValues): float | string |
|
194 | 194 | { |
195 | 195 | try { |
196 | 196 | self::checkTrendArrays($yValues, $xValues); |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | * |
218 | 218 | * @return array<mixed>|string The result, or a string containing an error |
219 | 219 | */ |
220 | - public static function LINEST(array $yValues, ?array $xValues = null, mixed $const = true, mixed $stats = false): string|array |
|
220 | + public static function LINEST(array $yValues, ?array $xValues = null, mixed $const = true, mixed $stats = false): string | array |
|
221 | 221 | { |
222 | 222 | $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const); |
223 | 223 | $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats); |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | * |
279 | 279 | * @return array<mixed>|string The result, or a string containing an error |
280 | 280 | */ |
281 | - public static function LOGEST(array $yValues, ?array $xValues = null, mixed $const = true, mixed $stats = false): string|array |
|
281 | + public static function LOGEST(array $yValues, ?array $xValues = null, mixed $const = true, mixed $stats = false): string | array |
|
282 | 282 | { |
283 | 283 | $const = ($const === null) ? true : (bool) Functions::flattenSingleValue($const); |
284 | 284 | $stats = ($stats === null) ? false : (bool) Functions::flattenSingleValue($stats); |
@@ -389,7 +389,7 @@ discard block |
||
389 | 389 | * @param mixed[] $yValues Data Series Y |
390 | 390 | * @param mixed[] $xValues Data Series X |
391 | 391 | */ |
392 | - public static function STEYX(array $yValues, array $xValues): float|string |
|
392 | + public static function STEYX(array $yValues, array $xValues): float | string |
|
393 | 393 | { |
394 | 394 | try { |
395 | 395 | self::checkTrendArrays($yValues, $xValues); |
@@ -29,7 +29,7 @@ discard block |
||
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 | 31 | */ |
32 | - public static function rate(mixed $values, mixed $guess = 0.1): string|float |
|
32 | + public static function rate(mixed $values, mixed $guess = 0.1): string | float |
|
33 | 33 | { |
34 | 34 | if (!is_array($values)) { |
35 | 35 | return ExcelError::VALUE(); |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * |
101 | 101 | * @return float|string Result, or a string containing an error |
102 | 102 | */ |
103 | - public static function modifiedRate(mixed $values, mixed $financeRate, mixed $reinvestmentRate): string|float |
|
103 | + public static function modifiedRate(mixed $values, mixed $financeRate, mixed $reinvestmentRate): string | float |
|
104 | 104 | { |
105 | 105 | if (!is_array($values)) { |
106 | 106 | return ExcelError::DIV0(); |
@@ -142,7 +142,7 @@ discard block |
||
142 | 142 | * |
143 | 143 | * @param array<mixed> $args |
144 | 144 | */ |
145 | - public static function presentValue(mixed $rate, ...$args): int|float |
|
145 | + public static function presentValue(mixed $rate, ...$args): int | float |
|
146 | 146 | { |
147 | 147 | $returnValue = 0; |
148 | 148 |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * All other dates must be later than this date, but they may occur in any order |
32 | 32 | * @param mixed $guess An optional guess at the expected answer |
33 | 33 | */ |
34 | - public static function rate(mixed $values, $dates, mixed $guess = self::DEFAULT_GUESS): float|string |
|
34 | + public static function rate(mixed $values, $dates, mixed $guess = self::DEFAULT_GUESS): float | string |
|
35 | 35 | { |
36 | 36 | $rslt = self::xirrPart1($values, $dates); |
37 | 37 | /** @var array<int, float|int|numeric-string> $dates */ |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | * The first payment date indicates the beginning of the schedule of payments. |
121 | 121 | * All other dates must be later than this date, but they may occur in any order. |
122 | 122 | */ |
123 | - public static function presentValue(mixed $rate, mixed $values, mixed $dates): float|string |
|
123 | + public static function presentValue(mixed $rate, mixed $values, mixed $dates): float | string |
|
124 | 124 | { |
125 | 125 | return self::xnpvOrdered($rate, $values, $dates, true); |
126 | 126 | } |
@@ -185,7 +185,7 @@ discard block |
||
185 | 185 | * @param array<int, float|int|numeric-string> $values |
186 | 186 | * @param array<int, float|int|numeric-string> $dates |
187 | 187 | */ |
188 | - private static function xirrPart3(array $values, array $dates, float $x1, float $x2): float|string |
|
188 | + private static function xirrPart3(array $values, array $dates, float $x1, float $x2): float | string |
|
189 | 189 | { |
190 | 190 | $f = self::xnpvOrdered($x1, $values, $dates, false); |
191 | 191 | if ($f < 0.0) { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | * @param array<int, float|int|numeric-string> $values |
219 | 219 | * @param array<int, float|int|numeric-string> $dates |
220 | 220 | */ |
221 | - private static function xirrBisection(array $values, array $dates, float $x1, float $x2): string|float |
|
221 | + private static function xirrBisection(array $values, array $dates, float $x1, float $x2): string | float |
|
222 | 222 | { |
223 | 223 | $rslt = ExcelError::NAN(); |
224 | 224 | for ($i = 0; $i < self::FINANCIAL_MAX_ITERATIONS; ++$i) { |
@@ -255,7 +255,7 @@ discard block |
||
255 | 255 | } |
256 | 256 | |
257 | 257 | /** @param array<int,float|int|numeric-string> $values> */ |
258 | - private static function xnpvOrdered(mixed $rate, mixed $values, mixed $dates, bool $ordered = true, bool $capAtNegative1 = false): float|string |
|
258 | + private static function xnpvOrdered(mixed $rate, mixed $values, mixed $dates, bool $ordered = true, bool $capAtNegative1 = false): float | string |
|
259 | 259 | { |
260 | 260 | $rate = Functions::flattenSingleValue($rate); |
261 | 261 | if (!is_numeric($rate)) { |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * |
51 | 51 | * @return array<mixed>|float|string |
52 | 52 | */ |
53 | - public static function decimal(mixed $fractionalDollar = null, mixed $fraction = 0): array|string|float |
|
53 | + public static function decimal(mixed $fractionalDollar = null, mixed $fraction = 0): array | string | float |
|
54 | 54 | { |
55 | 55 | if (is_array($fractionalDollar) || is_array($fraction)) { |
56 | 56 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $fractionalDollar, $fraction); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * |
99 | 99 | * @return array<mixed>|float|string |
100 | 100 | */ |
101 | - public static function fractional(mixed $decimalDollar = null, mixed $fraction = 0): array|string|float |
|
101 | + public static function fractional(mixed $decimalDollar = null, mixed $fraction = 0): array | string | float |
|
102 | 102 | { |
103 | 103 | if (is_array($decimalDollar) || is_array($fraction)) { |
104 | 104 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $decimalDollar, $fraction); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | * @return array<mixed>|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
19 | 19 | * with the same dimensions |
20 | 20 | */ |
21 | - public static function isErr(mixed $value = ''): array|bool |
|
21 | + public static function isErr(mixed $value = ''): array | bool |
|
22 | 22 | { |
23 | 23 | if (is_array($value)) { |
24 | 24 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | * @return array<mixed>|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
37 | 37 | * with the same dimensions |
38 | 38 | */ |
39 | - public static function isError(mixed $value = '', bool $tryNotImplemented = false): array|bool |
|
39 | + public static function isError(mixed $value = '', bool $tryNotImplemented = false): array | bool |
|
40 | 40 | { |
41 | 41 | if (is_array($value)) { |
42 | 42 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * @return array<mixed>|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
62 | 62 | * with the same dimensions |
63 | 63 | */ |
64 | - public static function isNa(mixed $value = ''): array|bool |
|
64 | + public static function isNa(mixed $value = ''): array | bool |
|
65 | 65 | { |
66 | 66 | if (is_array($value)) { |
67 | 67 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | * @return array<mixed>|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
25 | 25 | * with the same dimensions |
26 | 26 | */ |
27 | - public static function isBlank(mixed $value = null): array|bool |
|
27 | + public static function isBlank(mixed $value = null): array | bool |
|
28 | 28 | { |
29 | 29 | if (is_array($value)) { |
30 | 30 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | * @return array<mixed>|bool|string If an array of numbers is passed as an argument, then the returned result will also be an array |
74 | 74 | * with the same dimensions |
75 | 75 | */ |
76 | - public static function isEven(mixed $value = null): array|string|bool |
|
76 | + public static function isEven(mixed $value = null): array | string | bool |
|
77 | 77 | { |
78 | 78 | if (is_array($value)) { |
79 | 79 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | * @return array<mixed>|bool|string If an array of numbers is passed as an argument, then the returned result will also be an array |
99 | 99 | * with the same dimensions |
100 | 100 | */ |
101 | - public static function isOdd(mixed $value = null): array|string|bool |
|
101 | + public static function isOdd(mixed $value = null): array | string | bool |
|
102 | 102 | { |
103 | 103 | if (is_array($value)) { |
104 | 104 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | * @return array<mixed>|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
124 | 124 | * with the same dimensions |
125 | 125 | */ |
126 | - public static function isNumber(mixed $value = null): array|bool |
|
126 | + public static function isNumber(mixed $value = null): array | bool |
|
127 | 127 | { |
128 | 128 | if (is_array($value)) { |
129 | 129 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | * @return array<mixed>|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
146 | 146 | * with the same dimensions |
147 | 147 | */ |
148 | - public static function isLogical(mixed $value = null): array|bool |
|
148 | + public static function isLogical(mixed $value = null): array | bool |
|
149 | 149 | { |
150 | 150 | if (is_array($value)) { |
151 | 151 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | * @return array<mixed>|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
164 | 164 | * with the same dimensions |
165 | 165 | */ |
166 | - public static function isText(mixed $value = null): array|bool |
|
166 | + public static function isText(mixed $value = null): array | bool |
|
167 | 167 | { |
168 | 168 | if (is_array($value)) { |
169 | 169 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | * @return array<mixed>|bool If an array of numbers is passed as an argument, then the returned result will also be an array |
182 | 182 | * with the same dimensions |
183 | 183 | */ |
184 | - public static function isNonText(mixed $value = null): array|bool |
|
184 | + public static function isNonText(mixed $value = null): array | bool |
|
185 | 185 | { |
186 | 186 | if (is_array($value)) { |
187 | 187 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * |
199 | 199 | * @return array<mixed>|bool|string |
200 | 200 | */ |
201 | - public static function isFormula(mixed $cellReference = '', ?Cell $cell = null): array|bool|string |
|
201 | + public static function isFormula(mixed $cellReference = '', ?Cell $cell = null): array | bool | string |
|
202 | 202 | { |
203 | 203 | if ($cell === null) { |
204 | 204 | return ExcelError::REF(); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | * |
43 | 43 | * @return array<mixed>|int|string |
44 | 44 | */ |
45 | - public static function type(mixed $value = ''): array|int|string |
|
45 | + public static function type(mixed $value = ''): array | int | string |
|
46 | 46 | { |
47 | 47 | if (is_array($value)) { |
48 | 48 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $value); |