diff --git a/phpseclib/Crypt/RSA.php b/phpseclib/Crypt/RSA.php index b8095045..bbcdea85 100644 --- a/phpseclib/Crypt/RSA.php +++ b/phpseclib/Crypt/RSA.php @@ -285,10 +285,8 @@ abstract class RSA extends AsymmetricKey * Create a private key * * The public key can be extracted from the private key - * - * @return RSA */ - public static function createKey(int $bits = 2048) + public static function createKey(int $bits = 2048): PrivateKey { self::initialize_static_variables();