@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
26 | 26 | * with the same dimensions |
27 | 27 | */ |
28 | - public static function withoutRepetition(mixed $numObjs, mixed $numInSet): array|string|float |
|
28 | + public static function withoutRepetition(mixed $numObjs, mixed $numInSet): array | string | float |
|
29 | 29 | { |
30 | 30 | if (is_array($numObjs) || is_array($numInSet)) { |
31 | 31 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $numObjs, $numInSet); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
60 | 60 | * with the same dimensions |
61 | 61 | */ |
62 | - public static function withRepetition(mixed $numObjs, mixed $numInSet): array|int|string|float |
|
62 | + public static function withRepetition(mixed $numObjs, mixed $numInSet): array | int | string | float |
|
63 | 63 | { |
64 | 64 | if (is_array($numObjs) || is_array($numInSet)) { |
65 | 65 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $numObjs, $numInSet); |
@@ -825,7 +825,7 @@ |
||
825 | 825 | * If an array of numbers is passed as an argument, then the returned result will also be an array |
826 | 826 | * with the same dimensions |
827 | 827 | */ |
828 | - public static function evaluate(mixed $aValue, mixed $style = 0): array|string |
|
828 | + public static function evaluate(mixed $aValue, mixed $style = 0): array | string |
|
829 | 829 | { |
830 | 830 | if (is_array($aValue) || is_array($style)) { |
831 | 831 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $aValue, $style); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
49 | 49 | * with the same dimensions |
50 | 50 | */ |
51 | - public static function tanh(mixed $angle): array|string|float |
|
51 | + public static function tanh(mixed $angle): array | string | float |
|
52 | 52 | { |
53 | 53 | if (is_array($angle)) { |
54 | 54 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle); |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | * If an array of numbers is passed as one of the arguments, then the returned result will also be an array |
140 | 140 | * with the same dimensions |
141 | 141 | */ |
142 | - public static function atan2(mixed $xCoordinate, mixed $yCoordinate): array|string|float |
|
142 | + public static function atan2(mixed $xCoordinate, mixed $yCoordinate): array | string | float |
|
143 | 143 | { |
144 | 144 | if (is_array($xCoordinate) || is_array($yCoordinate)) { |
145 | 145 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $xCoordinate, $yCoordinate); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
22 | 22 | * with the same dimensions |
23 | 23 | */ |
24 | - public static function cos(mixed $number): array|string|float |
|
24 | + public static function cos(mixed $number): array | string | float |
|
25 | 25 | { |
26 | 26 | if (is_array($number)) { |
27 | 27 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
48 | 48 | * with the same dimensions |
49 | 49 | */ |
50 | - public static function cosh(mixed $number): array|string|float |
|
50 | + public static function cosh(mixed $number): array | string | float |
|
51 | 51 | { |
52 | 52 | if (is_array($number)) { |
53 | 53 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
22 | 22 | * with the same dimensions |
23 | 23 | */ |
24 | - public static function sin(mixed $angle): array|string|float |
|
24 | + public static function sin(mixed $angle): array | string | float |
|
25 | 25 | { |
26 | 26 | if (is_array($angle)) { |
27 | 27 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle); |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
48 | 48 | * with the same dimensions |
49 | 49 | */ |
50 | - public static function sinh(mixed $angle): array|string|float |
|
50 | + public static function sinh(mixed $angle): array | string | float |
|
51 | 51 | { |
52 | 52 | if (is_array($angle)) { |
53 | 53 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $angle); |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | * |
14 | 14 | * @return float|string quotient or DIV0 if denominator is too small |
15 | 15 | */ |
16 | - public static function verySmallDenominator(float $numerator, float $denominator): string|float |
|
16 | + public static function verySmallDenominator(float $numerator, float $denominator): string | float |
|
17 | 17 | { |
18 | 18 | return (abs($denominator) < 1.0E-12) ? ExcelError::DIV0() : ($numerator / $denominator); |
19 | 19 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | /** |
22 | 22 | * Many functions accept null/false/true argument treated as 0/0/1. |
23 | 23 | */ |
24 | - public static function validateNumericNullBool(mixed $number): int|float |
|
24 | + public static function validateNumericNullBool(mixed $number): int | float |
|
25 | 25 | { |
26 | 26 | $number = Functions::flattenSingleValue($number); |
27 | 27 | if ($number === null) { |
@@ -81,7 +81,7 @@ |
||
81 | 81 | * |
82 | 82 | * @return float|int|string The result, or a string containing an error |
83 | 83 | */ |
84 | - public static function product(mixed ...$args): string|int|float |
|
84 | + public static function product(mixed ...$args): string | int | float |
|
85 | 85 | { |
86 | 86 | $arrayList = $args; |
87 | 87 |
@@ -20,7 +20,7 @@ |
||
20 | 20 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
21 | 21 | * with the same dimensions |
22 | 22 | */ |
23 | - public static function evaluate(mixed $number): array|string|float |
|
23 | + public static function evaluate(mixed $number): array | string | float |
|
24 | 24 | { |
25 | 25 | if (is_array($number)) { |
26 | 26 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
23 | 23 | * with the same dimensions |
24 | 24 | */ |
25 | - public static function round(mixed $number, mixed $precision): array|string|float |
|
25 | + public static function round(mixed $number, mixed $precision): array | string | float |
|
26 | 26 | { |
27 | 27 | if (is_array($number) || is_array($precision)) { |
28 | 28 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $precision); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
51 | 51 | * with the same dimensions |
52 | 52 | */ |
53 | - public static function up($number, $digits): array|string|float |
|
53 | + public static function up($number, $digits): array | string | float |
|
54 | 54 | { |
55 | 55 | if (is_array($number) || is_array($digits)) { |
56 | 56 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $digits); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
87 | 87 | * with the same dimensions |
88 | 88 | */ |
89 | - public static function down($number, $digits): array|string|float |
|
89 | + public static function down($number, $digits): array | string | float |
|
90 | 90 | { |
91 | 91 | if (is_array($number) || is_array($digits)) { |
92 | 92 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $digits); |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
123 | 123 | * with the same dimensions |
124 | 124 | */ |
125 | - public static function multiple(mixed $number, mixed $multiple): array|string|int|float |
|
125 | + public static function multiple(mixed $number, mixed $multiple): array | string | int | float |
|
126 | 126 | { |
127 | 127 | if (is_array($number) || is_array($multiple)) { |
128 | 128 | return self::evaluateArrayArguments([self::class, __FUNCTION__], $number, $multiple); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
166 | 166 | * with the same dimensions |
167 | 167 | */ |
168 | - public static function even($number): array|string|float |
|
168 | + public static function even($number): array | string | float |
|
169 | 169 | { |
170 | 170 | if (is_array($number)) { |
171 | 171 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | * If an array of numbers is passed as the argument, then the returned result will also be an array |
192 | 192 | * with the same dimensions |
193 | 193 | */ |
194 | - public static function odd($number): array|string|int|float |
|
194 | + public static function odd($number): array | string | int | float |
|
195 | 195 | { |
196 | 196 | if (is_array($number)) { |
197 | 197 | return self::evaluateSingleArgumentArray([self::class, __FUNCTION__], $number); |