diff --git a/src/Enum/KeyAlgorithm.php b/src/Enum/KeyAlgorithm.php index cd97630..3de1ee2 100644 --- a/src/Enum/KeyAlgorithm.php +++ b/src/Enum/KeyAlgorithm.php @@ -150,8 +150,8 @@ public function forEncryption(): bool public function keyVersion(): int { return match ($this) { - self::X25519, self::X448, self::Ed25519, self::Ed448 => KeyVersion - ::V6->value, + self::X25519, self::X448, self::Ed25519, self::Ed448 + => KeyVersion::V6->value, default => Config::useV6Key() ? KeyVersion::V6->value : KeyVersion::V4->value,