diff --git a/src/Concerns/HasKey.php b/src/Concerns/HasKey.php index 5a782d2..19187ab 100644 --- a/src/Concerns/HasKey.php +++ b/src/Concerns/HasKey.php @@ -8,7 +8,7 @@ trait HasKey { - protected function resolveKey(BackedEnum | int | string $key): int | string + protected function resolveKey(BackedEnum|int|string $key): int|string { if ($key instanceof BackedEnum) { return $key->value ?? $key->name; diff --git a/src/Concerns/HasValues.php b/src/Concerns/HasValues.php index efab230..85bc7ca 100644 --- a/src/Concerns/HasValues.php +++ b/src/Concerns/HasValues.php @@ -10,11 +10,11 @@ trait HasValues { use HasKey; - public function get(BackedEnum | int | string $key): mixed + public function get(BackedEnum|int|string $key): mixed { $key = $this->resolveKey($key); - $main = $this->key . '.' . $key; + $main = $this->key . '.' . $key; $default = $this->default ? $this->default . '.' . $key : null; if ($this->default) {