From 10319ef72835b82f6d832ede273a49d9adb871dd Mon Sep 17 00:00:00 2001 From: Clemens Schwaighofer Date: Mon, 23 Dec 2024 12:56:57 +0900 Subject: [PATCH] Fix throws type for AsymmetricAnonymousEncryption in the phpdoc part --- www/lib/CoreLibs/Security/AsymmetricAnonymousEncryption.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www/lib/CoreLibs/Security/AsymmetricAnonymousEncryption.php b/www/lib/CoreLibs/Security/AsymmetricAnonymousEncryption.php index 46b01e7a..a30cb3b1 100644 --- a/www/lib/CoreLibs/Security/AsymmetricAnonymousEncryption.php +++ b/www/lib/CoreLibs/Security/AsymmetricAnonymousEncryption.php @@ -115,7 +115,7 @@ class AsymmetricAnonymousEncryption * @return string * @throws \UnexpectedValueException key pair empty * @throws \UnexpectedValueException invalid hex key pair - * @throws \UnexpectedValueException key pair not correct size + * @throws \RangeException key pair not correct size */ private function createKeyPair( #[\SensitiveParameter] @@ -147,7 +147,7 @@ class AsymmetricAnonymousEncryption * @return string * @throws \UnexpectedValueException public key empty * @throws \UnexpectedValueException invalid hex key - * @throws \UnexpectedValueException invalid key length + * @throws \RangeException invalid key length */ private function createPublicKey(?string $public_key): string {