@@ -14,9 +14,9 @@ discard block |
||
14 | 14 | * - The $(start|end)Inclusive determine whether the comparison is "lesser/greater than", or "lesser/greater or equal than" |
15 | 15 | */ |
16 | 16 | public static function inRange( |
17 | - null|float|int $value, |
|
18 | - null|float|int $start = null, |
|
19 | - null|float|int $end = null, |
|
17 | + null | float | int $value, |
|
18 | + null | float | int $start = null, |
|
19 | + null | float | int $end = null, |
|
20 | 20 | bool $startInclusive = true, |
21 | 21 | bool $endInclusive = false, |
22 | 22 | ): bool { |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | && (null === $end || $isLesser); |
46 | 46 | } |
47 | 47 | |
48 | - public static function stringToNumber(?string $number): null|float|int |
|
48 | + public static function stringToNumber(?string $number): null | float | int |
|
49 | 49 | { |
50 | 50 | if (!\is_numeric($number)) { |
51 | 51 | return null; |
@@ -12,8 +12,8 @@ |
||
12 | 12 | class ArithmeticRange extends BaseRange |
13 | 13 | { |
14 | 14 | public function __construct( |
15 | - public null|float|int $lower, |
|
16 | - public null|float|int $upper, |
|
15 | + public null | float | int $lower, |
|
16 | + public null | float | int $upper, |
|
17 | 17 | public bool $lowerInclusive = true, |
18 | 18 | public bool $upperInclusive = false, |
19 | 19 | ) { |