From dd9146e2590786ffbc1cd9bd661608d6ac739072 Mon Sep 17 00:00:00 2001 From: Anthony Ryan Date: Tue, 12 Jul 2022 15:17:16 -0400 Subject: [PATCH] Fix return type comment on Crypt/RSA::createKey() Function returns a Crypt/RSA/PrivateKey and updating the PHPDoc for it will help with static analysis. --- phpseclib/Crypt/RSA.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index 6d2d47a4..f5b6a1f1 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -290,7 +290,7 @@ abstract class RSA extends AsymmetricKey * * The public key can be extracted from the private key * - * @return RSA + * @return RSA\PrivateKey * @param int $bits */ public static function createKey($bits = 2048)