@@ -16,7 +16,7 @@ discard block |
||
| 16 | 16 | /** |
| 17 | 17 | * @param string $ks - int is deprecated |
| 18 | 18 | */ |
| 19 | - public function setConstantSymbol(int|string $ks): static |
|
| 19 | + public function setConstantSymbol(int | string $ks): static |
|
| 20 | 20 | { |
| 21 | 21 | InvalidArgument::checkRange($ks, 9999); |
| 22 | 22 | $this->ks = (string) $ks; |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | /** |
| 29 | 29 | * @param string $vs - int is deprecated |
| 30 | 30 | */ |
| 31 | - public function setVariableSymbol(int|string $vs): static |
|
| 31 | + public function setVariableSymbol(int | string $vs): static |
|
| 32 | 32 | { |
| 33 | 33 | InvalidArgument::checkRange($vs, 9999999999); |
| 34 | 34 | $this->vs = (string) $vs; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * @param string $ss - int is deprecated |
| 42 | 42 | */ |
| 43 | - public function setSpecificSymbol(int|string $ss): static |
|
| 43 | + public function setSpecificSymbol(int | string $ss): static |
|
| 44 | 44 | { |
| 45 | 45 | InvalidArgument::checkRange($ss, 9999999999); |
| 46 | 46 | $this->ss = (string) $ss; |
@@ -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))); |