@@ -63,10 +63,10 @@ discard block |
||
63 | 63 | public static function toArray(): array |
64 | 64 | { |
65 | 65 | $firstTime = !isset(static::$cache[static::class]); |
66 | - $array = array_filter(parent::toArray(), static function ($value): bool { |
|
66 | + $array = array_filter(parent::toArray(), static function($value): bool { |
|
67 | 67 | return is_scalar($value); |
68 | 68 | }); |
69 | - $firstTime && array_walk($array, static function ($item): void { |
|
69 | + $firstTime && array_walk($array, static function($item): void { |
|
70 | 70 | if (!is_int($item)) { |
71 | 71 | throw new UnexpectedValueException( |
72 | 72 | sprintf('All defined Const on Enum %s should be integers', static::class) |
@@ -92,7 +92,7 @@ discard block |
||
92 | 92 | */ |
93 | 93 | public static function getKeyArray(mixed $value): array |
94 | 94 | { |
95 | - $f = array_filter(static::toArray(), static function ($key) use (&$value) { |
|
95 | + $f = array_filter(static::toArray(), static function($key) use (&$value) { |
|
96 | 96 | return $value & $key; |
97 | 97 | }); |
98 | 98 |