@@ -15,7 +15,7 @@ discard block |
||
15 | 15 | } |
16 | 16 | |
17 | 17 | |
18 | - public static function checkRange(int|string $number, int $limit): void |
|
18 | + public static function checkRange(int | string $number, int $limit): void |
|
19 | 19 | { |
20 | 20 | $check = intval($number); |
21 | 21 | if ($check < 0 || $check > $limit) { |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | * @param array<T> $list |
31 | 31 | * @return T |
32 | 32 | */ |
33 | - public static function checkIsInList(string|int $value, array $list): string|int |
|
33 | + public static function checkIsInList(string | int $value, array $list): string | int |
|
34 | 34 | { |
35 | 35 | if (!in_array($value, $list, true)) { |
36 | 36 | throw new InvalidArgument(sprintf('Value "%s" is not contained in list: [%s].', $value, implode(', ', $list))); |