@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | * |
| 50 | 50 | * @throws InvalidArgumentException|RandomException |
| 51 | 51 | */ |
| 52 | - public static function getRandomElementFromArray(array $values): int|string |
|
| 52 | + public static function getRandomElementFromArray(array $values): int | string |
|
| 53 | 53 | { |
| 54 | 54 | $elements = static::getRandomElementsFromArray($values, 1); |
| 55 | 55 | |
@@ -98,7 +98,7 @@ discard block |
||
| 98 | 98 | * |
| 99 | 99 | * @throws Exception |
| 100 | 100 | */ |
| 101 | - public static function getWeighted(array $values, int $count = 1): string|int |
|
| 101 | + public static function getWeighted(array $values, int $count = 1): string | int |
|
| 102 | 102 | { |
| 103 | 103 | // TODO: Implement support for $count > 1 |
| 104 | 104 | $currentTotal = 0; |
@@ -124,7 +124,7 @@ discard block |
||
| 124 | 124 | * |
| 125 | 125 | * @throws RandomException |
| 126 | 126 | */ |
| 127 | - public static function getRange(array $range, int $decimals = 0): int|string |
|
| 127 | + public static function getRange(array $range, int $decimals = 0): int | string |
|
| 128 | 128 | { |
| 129 | 129 | if (count($range) !== 2) { |
| 130 | 130 | throw new RandomException('Invalid range'); |